Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.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: translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008428/0.0008427, allocations: 92.72 kB / 17.35 MB, free: 6.375 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.0008675/0.0008675, allocations: 181.8 kB / 18.26 MB, free: 5.52 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.32/1.32, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2306/0.2306, allocations: 44.25 MB / 337.7 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003141/0.0003141, allocations: 13.03 kB / 410.3 MB, free: 27.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.12, allocations: 61.93 MB / 472.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.04243/0.1625, allocations: 45.1 MB / 0.5052 GB, free: 88 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2785/0.441, allocations: 9.582 MB / 0.5146 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009379/0.4504, allocations: 191.5 kB / 0.5148 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.4523, allocations: 0.5052 MB / 0.5153 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006554/0.4588, allocations: 1.893 MB / 0.5171 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001921/0.4608, allocations: 0.5696 MB / 0.5177 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008768/0.4695, allocations: 5.996 MB / 0.5235 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00608/0.4757, allocations: 3.904 MB / 0.5273 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003286/0.479, allocations: 1.233 MB / 0.5285 GB, free: 6.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0045/0.4835, allocations: 2.114 MB / 0.5306 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001067/0.4846, allocations: 169.5 kB / 0.5308 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004243/0.4889, allocations: 0.9453 MB / 0.5317 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002394/0.4913, allocations: 1.829 MB / 0.5335 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00262/0.4939, allocations: 2.213 MB / 0.5356 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008547/0.5025, allocations: 7.205 MB / 0.5427 GB, free: 13.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.5025, allocations: 0 / 0.5427 GB, free: 13.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5025, allocations: 0 / 0.5427 GB, free: 13.28 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002576/0.5028, allocations: 2.562 kB / 0.5427 GB, free: 13.28 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.008644/0.5114, allocations: 4.151 MB / 0.5467 GB, free: 9.652 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.5115, allocations: 8.031 kB / 0.5467 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/0.523, allocations: 3.278 MB / 0.5499 GB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005138/0.5282, allocations: 2.38 MB / 0.5523 GB, free: 3.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.5284, allocations: 252.8 kB / 0.5525 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007229/0.5292, allocations: 326 kB / 0.5528 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0232/0.5524, allocations: 12.24 MB / 0.5648 GB, free: 6.859 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001505/0.5526, allocations: 47.62 kB / 0.5648 GB, free: 6.812 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006383/0.5532, allocations: 154.9 kB / 0.565 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005044/0.5583, allocations: 2.84 MB / 0.5677 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0233/0.5816, allocations: 11.14 MB / 0.5786 GB, free: 8.73 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06742/0.6491, allocations: 40.73 MB / 0.6184 GB, free: 15.19 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01027/0.6594, allocations: 4.683 MB / 0.623 GB, free: 10.28 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003581/0.6631, allocations: 2.435 MB / 0.6254 GB, free: 7.844 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001259/0.6643, allocations: 1.318 MB / 0.6266 GB, free: 6.312 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.817e-05/0.6644, allocations: 52.55 kB / 0.6267 GB, free: 6.254 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 6.552e-06/0.6644, allocations: 0 / 0.6267 GB, free: 6.254 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.05106/0.7155, allocations: 18.69 MB / 0.6449 GB, free: 3.434 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.7156, allocations: 73.41 kB / 0.645 GB, free: 3.352 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007519/0.7231, allocations: 3.172 MB / 0.6481 GB, free: 172 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006018/0.7238, allocations: 61.7 kB / 0.6482 GB, free: 104 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002967/0.7268, allocations: 3.119 MB / 0.6512 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001632/0.7284, allocations: 0.9745 MB / 0.6522 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001473/0.7299, allocations: 0.515 MB / 0.6527 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.73, allocations: 309.1 kB / 0.653 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004538/0.7346, allocations: 2.471 MB / 0.6554 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006916/0.7415, allocations: 5.723 MB / 0.661 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/0.7531, allocations: 8.984 MB / 0.6697 GB, free: 6.797 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001667/0.7533, allocations: 32 kB / 0.6698 GB, free: 6.766 MB / 0.5138 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01918/0.7725, allocations: 9.004 MB / 0.6786 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000169/0.7727, allocations: 52 kB / 0.6786 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002475/0.773, allocations: 116 kB / 0.6787 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003321/0.7763, allocations: 1.051 MB / 0.6797 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00521/0.7815, allocations: 1.353 MB / 0.6811 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008321/0.7899, allocations: 5.134 MB / 0.6861 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005226/0.7952, allocations: 338.7 kB / 0.6864 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001383/0.7966, allocations: 344 kB / 0.6867 GB, free: 5.238 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (729): * Single equations (assignments): 722 * Array equations: 6 * 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 {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006615/0.8032, allocations: 2.408 MB / 0.6891 GB, free: 2.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/0.8043, allocations: 308 kB / 0.6894 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/0.8154, allocations: 5.368 MB / 0.6946 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.016e-05/0.8155, allocations: 51.98 kB / 0.6947 GB, free: 13.04 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.826e-05/0.8155, allocations: 3.938 kB / 0.6947 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.89e-05/0.8156, allocations: 15.95 kB / 0.6947 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2764/1.092, allocations: 13.05 MB / 0.7074 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.901e-05/1.092, allocations: 12.5 kB / 0.7074 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002354/1.094, allocations: 426.7 kB / 0.7078 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003299/1.098, allocations: 0.8923 MB / 0.7087 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005584/1.098, allocations: 57.22 kB / 0.7088 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006536/1.105, allocations: 4.497 MB / 0.7132 GB, free: 196 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-05/1.105, allocations: 16.03 kB / 0.7132 GB, free: 196 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/1.12, allocations: 8.014 MB / 0.721 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/1.122, allocations: 373 kB / 0.7214 GB, free: 193.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001256/1.123, allocations: 54.62 kB / 0.7214 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002209/1.125, allocations: 148.3 kB / 0.7216 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006434/1.126, allocations: 169 kB / 0.7217 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003336/1.126, allocations: 81 kB / 0.7218 GB, free: 193.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004422/1.131, allocations: 1.96 MB / 0.7237 GB, free: 192.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.131, allocations: 0 / 0.7237 GB, free: 192.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005812/1.136, allocations: 1.083 MB / 0.7248 GB, free: 192.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (208): * Single equations (assignments): 201 * Array equations: 6 * 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 {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007245/1.137, allocations: 199 kB / 0.725 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008641/1.146, allocations: 6.002 MB / 0.7308 GB, free: 190.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/1.146, allocations: 0 / 0.7308 GB, free: 190.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002855/1.149, allocations: 2.257 MB / 0.733 GB, free: 189.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007331/1.156, allocations: 447.3 kB / 0.7334 GB, free: 189.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01862/1.175, allocations: 13.93 MB / 0.747 GB, free: 181.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005298/1.18, allocations: 3.703 MB / 0.7507 GB, free: 180.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00515/1.185, allocations: 2.16 MB / 0.7528 GB, free: 178.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/1.186, allocations: 242.9 kB / 0.753 GB, free: 178.6 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/1.186, allocations: 0 / 0.753 GB, free: 178.6 MB / 0.545 GB Notification: Performance of Templates: time 0.06125/1.248, allocations: 35.37 MB / 0.7876 GB, free: 143.9 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches