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.0009626/0.0009626, allocations: 98.98 kB / 17 MB, free: 6.402 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.00119/0.00119, allocations: 178 kB / 17.89 MB, free: 5.945 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.413/1.413, allocations: 223.3 MB / 241.9 MB, free: 14.5 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.2236/0.2236, allocations: 44.24 MB / 337.3 MB, free: 2.559 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003377, allocations: 8 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1495, allocations: 61.94 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.04481/0.1944, allocations: 41.97 MB / 0.5015 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3547/0.5491, allocations: 9.125 MB / 0.5104 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009335/0.5585, allocations: 192 kB / 0.5106 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00805/0.5666, allocations: 2.064 MB / 0.5126 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02063/0.5872, allocations: 6.146 MB / 0.5186 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003229/0.5905, allocations: 0.5207 MB / 0.5192 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007762/0.5983, allocations: 4.686 MB / 0.5237 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00733/0.6056, allocations: 3.519 MB / 0.5272 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003627/0.6093, allocations: 1.302 MB / 0.5284 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003678/0.613, allocations: 2.077 MB / 0.5305 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001245/0.6142, allocations: 170.3 kB / 0.5306 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00369/0.6179, allocations: 0.7931 MB / 0.5314 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003174/0.6211, allocations: 1.773 MB / 0.5331 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00244/0.6236, allocations: 0.9123 MB / 0.534 GB, free: 4.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008411/0.632, allocations: 5.956 MB / 0.5398 GB, free: 1.203 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.632, allocations: 0 / 0.5398 GB, free: 1.203 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.6321, allocations: 2.312 kB / 0.5398 GB, free: 1.203 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004316/0.6325, allocations: 0 / 0.5398 GB, free: 1.203 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01557/0.6481, allocations: 4.214 MB / 0.544 GB, free: 14.6 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.179e-05/0.6482, allocations: 8.75 kB / 0.544 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01215/0.6603, allocations: 3.277 MB / 0.5472 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006999/0.6674, allocations: 2.342 MB / 0.5495 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003376/0.6677, allocations: 262.2 kB / 0.5497 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002022/0.6698, allocations: 331.7 kB / 0.55 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02871/0.6985, allocations: 12.21 MB / 0.5619 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002607/0.6988, allocations: 37.91 kB / 0.562 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00159/0.7004, allocations: 153.2 kB / 0.5621 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004992/0.7054, allocations: 2.844 MB / 0.5649 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02463/0.7301, allocations: 11.09 MB / 0.5757 GB, free: 4.164 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06849/0.7986, allocations: 40.7 MB / 0.6155 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/0.8087, allocations: 4.68 MB / 0.6201 GB, free: 5.789 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003738/0.8125, allocations: 2.435 MB / 0.6224 GB, free: 3.352 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001297/0.8138, allocations: 1.317 MB / 0.6237 GB, free: 1.824 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.325e-05/0.8139, allocations: 52.56 kB / 0.6238 GB, free: 1.762 MB / 462.1 MB Notification: Performance of pre-optimization done (n=249): time 7.544e-06/0.8139, allocations: 0 / 0.6238 GB, free: 1.762 MB / 462.1 MB Notification: Performance of matching and sorting (n=267): time 0.04634/0.8602, allocations: 18.65 MB / 0.642 GB, free: 15 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.8603, allocations: 73.41 kB / 0.642 GB, free: 14.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005988/0.8663, allocations: 3.149 MB / 0.6451 GB, free: 11.76 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/0.8666, allocations: 61.7 kB / 0.6452 GB, free: 11.69 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002994/0.8696, allocations: 3.118 MB / 0.6482 GB, free: 8.59 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001268/0.8709, allocations: 0.9692 MB / 0.6492 GB, free: 7.629 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000436/0.8713, allocations: 116 kB / 0.6493 GB, free: 7.516 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0006659/0.872, allocations: 0.5633 MB / 0.6498 GB, free: 6.945 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004043/0.876, allocations: 2.452 MB / 0.6522 GB, free: 4.488 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006487/0.8825, allocations: 5.707 MB / 0.6578 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005862/0.8884, allocations: 3.716 MB / 0.6614 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/0.8886, allocations: 32 kB / 0.6615 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01832/0.9069, allocations: 8.96 MB / 0.6702 GB, free: 464 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.9071, allocations: 52 kB / 0.6703 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002464/0.9073, allocations: 116 kB / 0.6704 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003467/0.9108, allocations: 1.067 MB / 0.6714 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00511/0.916, allocations: 1.353 MB / 0.6727 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007496/0.9235, allocations: 5.13 MB / 0.6777 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004839/0.9283, allocations: 323.8 kB / 0.6781 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001346/0.9297, allocations: 340 kB / 0.6784 GB, free: 7.957 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00587/0.9356, allocations: 2.408 MB / 0.6807 GB, free: 5.539 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/0.9368, allocations: 319.8 kB / 0.681 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01094/0.9477, allocations: 5.351 MB / 0.6863 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.402e-05/0.9478, allocations: 47.98 kB / 0.6863 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.961e-05/0.9478, allocations: 4 kB / 0.6863 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.761e-05/0.9479, allocations: 15.92 kB / 0.6863 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02733/0.9752, allocations: 13.04 MB / 0.6991 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.545e-05/0.9753, allocations: 8.188 kB / 0.6991 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001878/0.9772, allocations: 423.3 kB / 0.6995 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002752/0.98, allocations: 0.8961 MB / 0.7003 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003243/0.9803, allocations: 59.98 kB / 0.7004 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2931/1.273, allocations: 4.485 MB / 0.7048 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.795e-05/1.273, allocations: 19.16 kB / 0.7048 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/1.287, allocations: 7.991 MB / 0.7126 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/1.289, allocations: 367.5 kB / 0.713 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005796/1.289, allocations: 53.47 kB / 0.713 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/1.291, allocations: 151.1 kB / 0.7132 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004375/1.291, allocations: 165 kB / 0.7133 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/1.291, allocations: 76 kB / 0.7134 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004454/1.296, allocations: 1.927 MB / 0.7153 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.51e-07/1.296, allocations: 3.344 kB / 0.7153 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006938/1.303, allocations: 1.081 MB / 0.7163 GB, free: 178.5 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007199/1.304, allocations: 201.1 kB / 0.7165 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01039/1.314, allocations: 5.962 MB / 0.7223 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.928e-05/1.314, allocations: 6.5 kB / 0.7223 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003184/1.317, allocations: 2.245 MB / 0.7245 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/1.32, allocations: 434 kB / 0.7249 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01988/1.34, allocations: 13.44 MB / 0.7381 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004636/1.345, allocations: 3.717 MB / 0.7417 GB, free: 167 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005061/1.35, allocations: 2.151 MB / 0.7438 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008036/1.351, allocations: 242.2 kB / 0.744 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/1.351, allocations: 0 / 0.744 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.07553/1.426, allocations: 34.58 MB / 0.7778 GB, free: 131.9 MB / 0.5294 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches