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.001027/0.001027, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001038/0.001038, allocations: 192 kB / 18.55 MB, free: 4.566 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.359/1.359, allocations: 222.9 MB / 242.3 MB, free: 15.17 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.2155/0.2155, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001477, allocations: 60.39 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1173, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.PlanarLoopWithMove): time 0.01392/0.1313, allocations: 11.98 MB / 481.3 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009167/0.1405, allocations: 4.622 MB / 486 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00262/0.1431, allocations: 79.75 kB / 486 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005895/0.1491, allocations: 2.994 MB / 489 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005185/0.1543, allocations: 1.969 MB / 491 MB, free: 8.531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.1567, allocations: 0.8727 MB / 491.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005874/0.1626, allocations: 4.072 MB / 495.9 MB, free: 3.578 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003762/0.1664, allocations: 3.309 MB / 499.3 MB, free: 228 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002908/0.1693, allocations: 1.744 MB / 0.4893 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003303/0.1726, allocations: 2.165 MB / 0.4914 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009189/0.1736, allocations: 312 kB / 0.4917 GB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002861/0.1764, allocations: 1.209 MB / 0.4928 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00189/0.1784, allocations: 1.948 MB / 0.4947 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002862/0.1812, allocations: 2.306 MB / 0.497 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2402/0.4214, allocations: 6.922 MB / 0.5038 GB, free: 23.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.18e-05/0.4215, allocations: 0 / 0.5038 GB, free: 23.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.4215, allocations: 0 / 0.5038 GB, free: 23.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003389/0.4219, allocations: 0.8125 kB / 0.5038 GB, free: 23.56 MB / 382.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.01595/0.4378, allocations: 5.341 MB / 0.509 GB, free: 21.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.4379, allocations: 9.469 kB / 0.509 GB, free: 21.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001557/0.4395, allocations: 0.7542 MB / 0.5097 GB, free: 21.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007811/0.4473, allocations: 1.879 MB / 0.5116 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005887/0.4532, allocations: 2.811 MB / 0.5143 GB, free: 20.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002024/0.4534, allocations: 235.7 kB / 0.5145 GB, free: 20.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.4544, allocations: 322.1 kB / 0.5148 GB, free: 20.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/0.4752, allocations: 11.19 MB / 0.5258 GB, free: 16.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/0.4755, allocations: 50.62 kB / 0.5258 GB, free: 16.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005151/0.476, allocations: 152.1 kB / 0.526 GB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003793/0.4798, allocations: 2.296 MB / 0.5282 GB, free: 16.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02014/0.4999, allocations: 9.871 MB / 0.5378 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05778/0.5578, allocations: 44.31 MB / 0.5811 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0141/0.5719, allocations: 5.826 MB / 0.5868 GB, free: 8.574 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004641/0.5766, allocations: 3.243 MB / 0.59 GB, free: 5.324 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01617/0.5928, allocations: 9.359 MB / 0.5991 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01116/0.604, allocations: 3.369 MB / 0.6024 GB, free: 8.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=211): time 8.496e-06/0.6041, allocations: 0 / 0.6024 GB, free: 8.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=285): time 0.1236/0.7277, allocations: 33.4 MB / 0.635 GB, free: 7.031 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.698e-05/0.7278, allocations: 162.4 kB / 0.6352 GB, free: 6.844 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007227/0.7351, allocations: 4.199 MB / 0.6393 GB, free: 2.617 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008359/0.7359, allocations: 65.7 kB / 0.6393 GB, free: 2.547 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002941/0.7389, allocations: 3.254 MB / 0.6425 GB, free: 15.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001556/0.7405, allocations: 1.038 MB / 0.6435 GB, free: 14.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003989/0.7445, allocations: 1.337 MB / 0.6448 GB, free: 12.92 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.7446, allocations: 301.1 kB / 0.6451 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005699/0.7504, allocations: 3.374 MB / 0.6484 GB, free: 9.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009072/0.7595, allocations: 6.978 MB / 0.6552 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01502/0.7745, allocations: 11.17 MB / 0.6661 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001151/0.7747, allocations: 36 kB / 0.6662 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of matching and sorting (n=859) (initialization): time 0.02624/0.8009, allocations: 12.59 MB / 0.6785 GB, free: 7.742 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.8011, allocations: 60 kB / 0.6785 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000189/0.8013, allocations: 124 kB / 0.6786 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007573/0.8089, allocations: 2.638 MB / 0.6812 GB, free: 4.914 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005495/0.8144, allocations: 1.474 MB / 0.6826 GB, free: 3.438 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2833/1.098, allocations: 23.39 MB / 0.7055 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005815/1.104, allocations: 431.8 kB / 0.7059 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/1.105, allocations: 384 kB / 0.7063 GB, free: 182.1 MB / 0.5294 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.003739/1.109, allocations: 2.232 MB / 0.7084 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008937/1.109, allocations: 406.3 kB / 0.7088 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01445/1.124, allocations: 8.018 MB / 0.7167 GB, free: 178.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.052e-05/1.124, allocations: 29.89 kB / 0.7167 GB, free: 178.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.153e-05/1.124, allocations: 9.469 kB / 0.7167 GB, free: 178.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.504e-05/1.124, allocations: 15.73 kB / 0.7167 GB, free: 178.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02151/1.146, allocations: 14.79 MB / 0.7312 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/1.146, allocations: 10.12 kB / 0.7312 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00182/1.147, allocations: 395.1 kB / 0.7315 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00465/1.152, allocations: 2.315 MB / 0.7338 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002219/1.152, allocations: 54.77 kB / 0.7339 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02041/1.173, allocations: 23.14 MB / 0.7565 GB, free: 153 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.173, allocations: 4 kB / 0.7565 GB, free: 153 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/1.184, allocations: 8.124 MB / 0.7644 GB, free: 145 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007816/1.185, allocations: 447 kB / 0.7648 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007457/1.186, allocations: 47.94 kB / 0.7649 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002179/1.188, allocations: 211.7 kB / 0.7651 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006096/1.188, allocations: 188.6 kB / 0.7652 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002058/1.189, allocations: 82.72 kB / 0.7653 GB, free: 144 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002933/1.192, allocations: 2.626 MB / 0.7679 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/1.192, allocations: 0 / 0.7679 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004461/1.196, allocations: 1.357 MB / 0.7692 GB, free: 140 MB / 0.5294 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.012/1.208, allocations: 9.112 MB / 0.7781 GB, free: 131 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01506/1.223, allocations: 11.63 MB / 0.7895 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/1.223, allocations: 0 / 0.7895 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005384/1.229, allocations: 4.085 MB / 0.7935 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/1.232, allocations: 0.4893 MB / 0.7939 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07145/1.304, allocations: 67.7 MB / 0.86 GB, free: 38.91 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00369/1.307, allocations: 3.57 MB / 0.8635 GB, free: 35.31 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004931/1.312, allocations: 2.14 MB / 0.8656 GB, free: 33.16 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002432/1.315, allocations: 2.081 MB / 0.8677 GB, free: 31.08 MB / 0.5294 GB Notification: Performance of SimCode: time 1.152e-06/1.315, allocations: 0 / 0.8677 GB, free: 31.08 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5515/1.866, allocations: 104.5 MB / 0.9697 GB, free: 131.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.12/17.99, allocations: 7.844 kB / 0.9697 GB, free: 131.3 MB / 0.5294 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.PlanarLoopWithMove_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_PlanarLoopWithMove_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 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.mat","/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