Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2214/0.2214, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001203, allocations: 64.59 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1171, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003296/0.1205, allocations: 1.891 MB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000839/0.1213, allocations: 0.5026 MB / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.1214, allocations: 4 kB / 471.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.1216, allocations: 19.78 kB / 471.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.223e-05/0.1217, allocations: 43.64 kB / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002035/0.1219, allocations: 35.89 kB / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.1221, allocations: 147.3 kB / 472 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.1223, allocations: 61.62 kB / 472.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.1224, allocations: 67.78 kB / 472.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.1226, allocations: 59.77 kB / 472.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/0.1226, allocations: 15.94 kB / 472.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.46e-05/0.1226, allocations: 15.94 kB / 472.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.25e-05/0.1227, allocations: 23.91 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.812e-05/0.1227, allocations: 71.67 kB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.1229, allocations: 143.7 kB / 472.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1229, allocations: 4 kB / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1229, allocations: 0 / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.123, allocations: 0 / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005964/0.1236, allocations: 427.1 kB / 472.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1236, allocations: 12.03 kB / 472.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.606e-05/0.1237, allocations: 46.73 kB / 472.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.421e-05/0.1237, allocations: 16.75 kB / 472.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.1239, allocations: 204.1 kB / 473.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.1239, allocations: 12.38 kB / 473.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.124, allocations: 20.27 kB / 473.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.1243, allocations: 121.6 kB / 473.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.1243, allocations: 11.94 kB / 473.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.1243, allocations: 4 kB / 473.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1243, allocations: 4 kB / 473.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.1245, allocations: 79.95 kB / 473.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007551/0.1253, allocations: 480.1 kB / 473.9 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.1255, allocations: 118.4 kB / 474 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.1256, allocations: 64.77 kB / 474 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.1256, allocations: 4 kB / 474 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.1257, allocations: 30.81 kB / 474.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.203e-06/0.1257, allocations: 4 kB / 474.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001455/0.1271, allocations: 0.8031 MB / 474.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.1272, allocations: 59.41 kB / 474.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.1273, allocations: 137.1 kB / 475.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.1273, allocations: 33.7 kB / 475.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.1274, allocations: 112.3 kB / 475.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.16e-05/0.1274, allocations: 63.02 kB / 475.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.508e-05/0.1275, allocations: 37.7 kB / 475.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1276, allocations: 330.8 kB / 475.6 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.376e-05/0.1277, allocations: 39.98 kB / 475.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.1279, allocations: 79.34 kB / 475.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002042/0.1281, allocations: 131.3 kB / 475.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.1281, allocations: 0 / 475.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003736/0.1285, allocations: 202.3 kB / 476.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1285, allocations: 11.92 kB / 476.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1285, allocations: 4 kB / 476.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/0.1287, allocations: 40.78 kB / 476.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.1289, allocations: 39.91 kB / 476.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001447/0.1303, allocations: 1.744 MB / 477.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.542e-05/0.1304, allocations: 8 kB / 477.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.1304, allocations: 4 kB / 477.9 MB, free: 5.207 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.885e-05/0.1305, allocations: 125.8 kB / 478 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.1306, allocations: 15.8 kB / 478.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.1306, allocations: 17.19 kB / 478.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-06/0.1306, allocations: 3.938 kB / 478.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1306, allocations: 3.938 kB / 478.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1307, allocations: 8.062 kB / 478.1 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007425/0.1314, allocations: 0.5452 MB / 478.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.1314, allocations: 7.938 kB / 478.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.1316, allocations: 40 kB / 478.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.809e-05/0.1317, allocations: 28.84 kB / 478.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.1317, allocations: 8.188 kB / 478.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.1329, allocations: 1.477 MB / 480.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1329, allocations: 0 / 480.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000494/0.1334, allocations: 352.9 kB / 480.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.349e-05/0.1334, allocations: 81.02 kB / 480.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.1335, allocations: 8 kB / 480.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.1336, allocations: 8 kB / 480.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/0.1336, allocations: 19.84 kB / 480.7 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.1337, allocations: 8 kB / 480.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.139e-05/0.1337, allocations: 105.6 kB / 480.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1337, allocations: 4 kB / 480.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003543/0.1341, allocations: 40 kB / 480.8 MB, free: 2.066 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007799/0.1349, allocations: 0.8739 MB / 481.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004925/0.1354, allocations: 270.5 kB / 481.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1354, allocations: 0 / 481.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.1357, allocations: 190.6 kB / 482.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.1361, allocations: 28.11 kB / 482.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.1384, allocations: 2.04 MB / 484.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.1387, allocations: 0.7204 MB / 484.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.808e-05/0.1387, allocations: 13.42 kB / 484.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.53e-05/0.1388, allocations: 39.42 kB / 485 MB, free: 13.7 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1388, allocations: 0 / 485 MB, free: 13.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.1624, allocations: 3.338 MB / 488.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.469/9.632, allocations: 3.781 kB / 488.3 MB, free: 10.49 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches