Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove.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.TestMove,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestMove",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestMove,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestMove",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.001139/0.001139, allocations: 104 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.00123/0.00123, allocations: 192.1 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.371/1.371, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.2007/0.2007, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 59.31 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1146, allocations: 60.82 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestMove): time 0.008649/0.1233, allocations: 7.475 MB / 476.8 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005757/0.129, allocations: 3.337 MB / 480.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008243/0.1299, allocations: 35.88 kB / 480.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001726/0.1316, allocations: 0.8015 MB / 481 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002859/0.1345, allocations: 1.322 MB / 482.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.1357, allocations: 0.5379 MB / 482.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002879/0.1386, allocations: 2.554 MB / 485.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/0.1402, allocations: 1.253 MB / 486.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.1414, allocations: 0.7705 MB / 487.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.1429, allocations: 1.121 MB / 488.6 MB, free: 11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003848/0.1433, allocations: 140 kB / 488.7 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001797/0.1451, allocations: 0.9438 MB / 489.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009962/0.1461, allocations: 1.024 MB / 490.7 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.1475, allocations: 1.227 MB / 491.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004105/0.1516, allocations: 3.882 MB / 495.8 MB, free: 3.766 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1516, allocations: 3.938 kB / 495.8 MB, free: 3.762 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1516, allocations: 0 / 495.8 MB, free: 3.762 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001347/0.1518, allocations: 0 / 495.8 MB, free: 3.762 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 954 * Number of variables: 954 Notification: Performance of Generate backend data structure: time 0.006508/0.1583, allocations: 2.964 MB / 498.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1583, allocations: 8.031 kB / 498.7 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007585/0.1591, allocations: 466.5 kB / 499.2 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006137/0.1653, allocations: 1.655 MB / 0.4891 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003463/0.1687, allocations: 1.644 MB / 0.4907 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.1689, allocations: 127.4 kB / 0.4908 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006411/0.1695, allocations: 171.8 kB / 0.491 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009976/0.1795, allocations: 6.456 MB / 0.4973 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.653e-05/0.1796, allocations: 31.66 kB / 0.4973 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003129/0.18, allocations: 83.89 kB / 0.4974 GB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002467/0.1824, allocations: 1.437 MB / 0.4988 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2229/0.4054, allocations: 5.721 MB / 0.5044 GB, free: 44.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02851/0.4339, allocations: 26.8 MB / 0.5306 GB, free: 25.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003991/0.438, allocations: 2.137 MB / 0.5327 GB, free: 24.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.4391, allocations: 1.037 MB / 0.5337 GB, free: 23.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000168/0.4393, allocations: 180.5 kB / 0.5339 GB, free: 23.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.4393, allocations: 46.83 kB / 0.5339 GB, free: 23.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=100): time 3.477e-06/0.4394, allocations: 0 / 0.5339 GB, free: 23.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.01401/0.4534, allocations: 6.377 MB / 0.5401 GB, free: 19.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.4535, allocations: 144.6 kB / 0.5403 GB, free: 19.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/0.4566, allocations: 2.894 MB / 0.5431 GB, free: 18.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001531/0.4568, allocations: 41.2 kB / 0.5431 GB, free: 18.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009567/0.4577, allocations: 2.106 MB / 0.5452 GB, free: 16.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003274/0.4581, allocations: 456.3 kB / 0.5456 GB, free: 15.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008214/0.4589, allocations: 0.896 MB / 0.5465 GB, free: 14.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.075e-05/0.459, allocations: 301.1 kB / 0.5468 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.4606, allocations: 1.418 MB / 0.5482 GB, free: 13.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002577/0.4632, allocations: 4.291 MB / 0.5524 GB, free: 7.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005096/0.4683, allocations: 6.198 MB / 0.5584 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.749e-05/0.4684, allocations: 32.48 kB / 0.5584 GB, free: 15.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=577) (initialization): time 0.01021/0.4786, allocations: 5.488 MB / 0.5638 GB, free: 10.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.885e-05/0.4788, allocations: 48 kB / 0.5638 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001118/0.4789, allocations: 104 kB / 0.5639 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001241/0.479, allocations: 132 kB / 0.5641 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004123/0.4831, allocations: 1.229 MB / 0.5653 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001516/0.4833, allocations: 199.2 kB / 0.5655 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002843/0.4862, allocations: 247.7 kB / 0.5657 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003611/0.4865, allocations: 280.3 kB / 0.566 GB, free: 7.941 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 18 (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],ActuatedRevolute1.cylinderColor[3],ActuatedRevolute1.cylinderColor[2],ActuatedRevolute1.cylinderColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (553): * Single equations (assignments): 550 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001881/0.4884, allocations: 1.383 MB / 0.5673 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004205/0.4889, allocations: 236.9 kB / 0.5675 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/0.4909, allocations: 1.242 MB / 0.5688 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/0.491, allocations: 17.44 kB / 0.5688 GB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.491, allocations: 4 kB / 0.5688 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.491, allocations: 7.969 kB / 0.5688 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008374/0.4994, allocations: 4.559 MB / 0.5732 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/0.4994, allocations: 4 kB / 0.5732 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/0.5014, allocations: 378 kB / 0.5736 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.735e-05/0.5015, allocations: 8 kB / 0.5736 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/0.5016, allocations: 24.58 kB / 0.5736 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.097e-05/0.5016, allocations: 12 kB / 0.5736 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/0.5016, allocations: 7.938 kB / 0.5736 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/0.5045, allocations: 2.163 MB / 0.5758 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008331/0.5054, allocations: 305.8 kB / 0.5761 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005781/0.506, allocations: 16 kB / 0.5761 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.5074, allocations: 59.92 kB / 0.5761 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.5076, allocations: 75.73 kB / 0.5762 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.996e-05/0.5077, allocations: 39.28 kB / 0.5762 GB, free: 13.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004229/0.512, allocations: 1.819 MB / 0.578 GB, free: 11.4 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.515e-06/0.512, allocations: 0 / 0.578 GB, free: 11.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004495/0.5165, allocations: 0.6301 MB / 0.5786 GB, free: 10.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 simulation (90): * Single equations (assignments): 87 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003496/0.52, allocations: 2.794 MB / 0.5814 GB, free: 7.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00557/0.5256, allocations: 3.459 MB / 0.5847 GB, free: 4.484 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.5257, allocations: 0 / 0.5847 GB, free: 4.484 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.5267, allocations: 0.7964 MB / 0.5855 GB, free: 3.691 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/0.529, allocations: 264.8 kB / 0.5858 GB, free: 3.438 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04797/0.577, allocations: 32.37 MB / 0.6174 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002641/0.5797, allocations: 2.206 MB / 0.6195 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00356/0.5833, allocations: 1.462 MB / 0.621 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001687/0.585, allocations: 1.085 MB / 0.622 GB, free: 8.938 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.585, allocations: 0 / 0.622 GB, free: 8.938 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07895/0.664, allocations: 44.24 MB / 0.6652 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.061/9.725, allocations: 9.328 kB / 0.6652 GB, free: 12.88 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove_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_TestMove.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestMove/TestMove.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestMove.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches