Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove.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.MultiBody.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_PlanarLoopWithMove",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_PlanarLoopWithMove",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.001656/0.001657, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.00215/0.00215, allocations: 185 kB / 18.72 MB, free: 4.332 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.364/1.364, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2208/0.2208, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3473, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.PlanarLoopWithMove): time 0.01316/0.3605, allocations: 11.98 MB / 0.5301 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.3713, allocations: 4.613 MB / 0.5346 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002974/0.3743, allocations: 81.03 kB / 0.5347 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006046/0.3804, allocations: 2.991 MB / 0.5376 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006698/0.3872, allocations: 2.028 MB / 0.5396 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002982/0.3902, allocations: 0.8705 MB / 0.5405 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007863/0.398, allocations: 4.069 MB / 0.5444 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005786/0.4038, allocations: 3.312 MB / 0.5477 GB, free: 14.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004293/0.4082, allocations: 1.752 MB / 0.5494 GB, free: 12.31 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00361/0.4118, allocations: 2.176 MB / 0.5515 GB, free: 10.12 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001234/0.413, allocations: 312 kB / 0.5518 GB, free: 9.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00319/0.4162, allocations: 1.217 MB / 0.553 GB, free: 8.602 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00264/0.4189, allocations: 2.006 MB / 0.5549 GB, free: 6.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003958/0.4229, allocations: 2.295 MB / 0.5572 GB, free: 4.281 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009379/0.4323, allocations: 7.216 MB / 0.5642 GB, free: 13.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4323, allocations: 3.938 kB / 0.5642 GB, free: 13.03 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4323, allocations: 0 / 0.5642 GB, free: 13.03 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002406/0.4325, allocations: 0 / 0.5642 GB, free: 13.03 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1597 * Number of variables: 1597 Notification: Performance of Generate backend data structure: time 0.01232/0.4449, allocations: 5.481 MB / 0.5696 GB, free: 7.465 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.4449, allocations: 12.03 kB / 0.5696 GB, free: 7.453 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00175/0.4467, allocations: 0.7491 MB / 0.5703 GB, free: 6.691 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006734/0.4534, allocations: 1.913 MB / 0.5722 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006254/0.4597, allocations: 2.899 MB / 0.575 GB, free: 1.816 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002276/0.46, allocations: 238 kB / 0.5753 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.461, allocations: 311.8 kB / 0.5756 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02198/0.483, allocations: 11.19 MB / 0.5865 GB, free: 5.336 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001803/0.4832, allocations: 47.64 kB / 0.5865 GB, free: 5.289 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001132/0.4844, allocations: 151.8 kB / 0.5867 GB, free: 5.141 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004191/0.4886, allocations: 2.298 MB / 0.5889 GB, free: 2.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01957/0.5082, allocations: 9.862 MB / 0.5985 GB, free: 8.953 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05723/0.5654, allocations: 44.19 MB / 0.6417 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01361/0.5791, allocations: 5.812 MB / 0.6474 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003955/0.5831, allocations: 3.254 MB / 0.6506 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01373/0.5968, allocations: 9.38 MB / 0.6597 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01006/0.6069, allocations: 3.369 MB / 0.663 GB, free: 5.203 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=211): time 6.562e-06/0.607, allocations: 0 / 0.663 GB, free: 5.203 MB / 0.5137 GB Notification: Performance of matching and sorting (n=285): time 0.1546/0.7616, allocations: 33.64 MB / 0.6959 GB, free: 3.527 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.7617, allocations: 154.5 kB / 0.696 GB, free: 3.344 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008305/0.7701, allocations: 4.203 MB / 0.7001 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008038/0.7709, allocations: 73.69 kB / 0.7002 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00339/0.7743, allocations: 3.374 MB / 0.7035 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001861/0.7762, allocations: 1.089 MB / 0.7045 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004713/0.7809, allocations: 1.349 MB / 0.7059 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.7811, allocations: 301.1 kB / 0.7062 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005971/0.7871, allocations: 3.37 MB / 0.7094 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2976/1.085, allocations: 6.97 MB / 0.7162 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01389/1.099, allocations: 11.17 MB / 0.7272 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001726/1.099, allocations: 36.78 kB / 0.7272 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=859) (initialization): time 0.02275/1.122, allocations: 12.61 MB / 0.7395 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.083e-05/1.122, allocations: 64.88 kB / 0.7396 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/1.122, allocations: 124.6 kB / 0.7397 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006322/1.128, allocations: 2.634 MB / 0.7423 GB, free: 153 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00479/1.133, allocations: 1.479 MB / 0.7437 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0234/1.156, allocations: 23.38 MB / 0.7665 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005396/1.162, allocations: 437.9 kB / 0.767 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008234/1.163, allocations: 391.9 kB / 0.7673 GB, free: 133.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent,rod3.color[3],rod3.color[2],rod3.color[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],r4.cylinderColor[3],r4.cylinderColor[2],r4.cylinderColor[1],r3.cylinderColor[3],r3.cylinderColor[2],r3.cylinderColor[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 753 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (2,14,100.0%), (2,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,27)} Notification: Performance of prepare postOptimizeDAE: time 0.00314/1.166, allocations: 2.232 MB / 0.7695 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007243/1.166, allocations: 423.1 kB / 0.7699 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.178, allocations: 8.01 MB / 0.7777 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.416e-05/1.178, allocations: 28 kB / 0.7778 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/1.178, allocations: 12 kB / 0.7778 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-05/1.178, allocations: 17.7 kB / 0.7778 GB, free: 122.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02249/1.201, allocations: 14.61 MB / 0.7921 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/1.201, allocations: 0 / 0.7921 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002042/1.203, allocations: 404.6 kB / 0.7924 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005034/1.208, allocations: 2.299 MB / 0.7947 GB, free: 105.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002577/1.208, allocations: 51.94 kB / 0.7947 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02234/1.231, allocations: 23.17 MB / 0.8174 GB, free: 81.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.231, allocations: 4.031 kB / 0.8174 GB, free: 81.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01216/1.243, allocations: 8.155 MB / 0.8253 GB, free: 73.39 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/1.244, allocations: 462.1 kB / 0.8258 GB, free: 72.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006422/1.245, allocations: 59.14 kB / 0.8258 GB, free: 72.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002057/1.247, allocations: 211.7 kB / 0.826 GB, free: 72.67 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006099/1.247, allocations: 189.7 kB / 0.8262 GB, free: 72.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00022/1.248, allocations: 75.98 kB / 0.8263 GB, free: 72.41 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002971/1.25, allocations: 2.626 MB / 0.8289 GB, free: 69.77 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.25, allocations: 0 / 0.8289 GB, free: 69.77 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005211/1.256, allocations: 1.365 MB / 0.8302 GB, free: 68.42 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (188): * Single equations (assignments): 179 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (3,13,88.9%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,31)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01282/1.269, allocations: 9.148 MB / 0.8391 GB, free: 59.35 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01291/1.282, allocations: 8.889 MB / 0.8478 GB, free: 50.42 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/1.282, allocations: 1.969 kB / 0.8478 GB, free: 50.42 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005428/1.287, allocations: 4.097 MB / 0.8518 GB, free: 46.27 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/1.29, allocations: 492 kB / 0.8523 GB, free: 45.78 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08474/1.374, allocations: 60.35 MB / 0.9112 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003966/1.378, allocations: 3.578 MB / 0.9147 GB, free: 7.934 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004724/1.383, allocations: 2.136 MB / 0.9168 GB, free: 5.789 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002921/1.386, allocations: 2.077 MB / 0.9188 GB, free: 3.711 MB / 0.5919 GB Notification: Performance of SimCode: time 1.152e-06/1.386, allocations: 4 kB / 0.9188 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4453/1.831, allocations: 100.4 MB / 1.017 GB, free: 178.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.62/22.45, allocations: 11.03 kB / 1.017 GB, free: 178.8 MB / 0.6231 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_MultiBody_PlanarLoopWithMove.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/PlanarLoopWithMove/PlanarLoopWithMove.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches