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.001328/0.001328, allocations: 106.3 kB / 17.98 MB, free: 5.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.001504/0.001505, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.377/1.377, allocations: 222.9 MB / 242.6 MB, free: 13.73 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.2188/0.2188, allocations: 44.18 MB / 336.9 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.001511, allocations: 59.34 kB / 408.5 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1106, allocations: 60.84 MB / 469.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.04363/0.1543, allocations: 46.38 MB / 0.5037 GB, free: 128 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2632/0.4175, allocations: 9.536 MB / 0.513 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01088/0.4284, allocations: 190.8 kB / 0.5132 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005258/0.4337, allocations: 2.135 MB / 0.5153 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006725/0.4405, allocations: 1.878 MB / 0.5171 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001889/0.4424, allocations: 0.5737 MB / 0.5176 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007908/0.4504, allocations: 4.303 MB / 0.5218 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005668/0.4561, allocations: 3.294 MB / 0.5251 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003914/0.46, allocations: 1.601 MB / 0.5266 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003755/0.4638, allocations: 2.43 MB / 0.529 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001468/0.4653, allocations: 345 kB / 0.5293 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003451/0.4688, allocations: 1.065 MB / 0.5304 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003031/0.4718, allocations: 2.021 MB / 0.5323 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004104/0.4759, allocations: 2.411 MB / 0.5347 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007224/0.4832, allocations: 6.167 MB / 0.5407 GB, free: 13.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.4832, allocations: 2.562 kB / 0.5407 GB, free: 13.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4832, allocations: 0 / 0.5407 GB, free: 13.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002968/0.4835, allocations: 0 / 0.5407 GB, free: 13.39 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.0109/0.4945, allocations: 5.086 MB / 0.5457 GB, free: 9.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.4945, allocations: 8.031 kB / 0.5457 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/0.5052, allocations: 3.196 MB / 0.5488 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00557/0.5108, allocations: 2.367 MB / 0.5511 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002649/0.5111, allocations: 248 kB / 0.5514 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001298/0.5124, allocations: 333.9 kB / 0.5517 GB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02136/0.5338, allocations: 12.24 MB / 0.5636 GB, free: 6.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001405/0.534, allocations: 27.75 kB / 0.5637 GB, free: 6.543 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006497/0.5346, allocations: 154.7 kB / 0.5638 GB, free: 6.441 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004686/0.5393, allocations: 2.843 MB / 0.5666 GB, free: 3.609 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02219/0.5615, allocations: 11.13 MB / 0.5775 GB, free: 8.461 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05899/0.6206, allocations: 40.71 MB / 0.6172 GB, free: 14.94 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0103/0.6309, allocations: 4.697 MB / 0.6218 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004084/0.6351, allocations: 2.431 MB / 0.6242 GB, free: 7.594 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001313/0.6364, allocations: 1.314 MB / 0.6255 GB, free: 6.066 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.6364, allocations: 48.56 kB / 0.6255 GB, free: 6.012 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 5.06e-06/0.6365, allocations: 0 / 0.6255 GB, free: 6.012 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04628/0.6827, allocations: 18.69 MB / 0.6438 GB, free: 3.191 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.6828, allocations: 81.39 kB / 0.6438 GB, free: 3.102 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005728/0.6886, allocations: 3.166 MB / 0.6469 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004711/0.6891, allocations: 61.7 kB / 0.647 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002493/0.6916, allocations: 3.121 MB / 0.65 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001326/0.6929, allocations: 0.9699 MB / 0.651 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002625/0.6956, allocations: 1.187 MB / 0.6521 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.6957, allocations: 301.1 kB / 0.6524 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003984/0.6997, allocations: 2.463 MB / 0.6548 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006604/0.7063, allocations: 5.734 MB / 0.6604 GB, free: 480 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01136/0.7177, allocations: 8.988 MB / 0.6692 GB, free: 5.883 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/0.7179, allocations: 32 kB / 0.6692 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01778/0.7357, allocations: 9.004 MB / 0.678 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.7359, allocations: 52 kB / 0.6781 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001997/0.7361, allocations: 112 kB / 0.6782 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003258/0.7394, allocations: 1.055 MB / 0.6792 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004691/0.7441, allocations: 1.349 MB / 0.6805 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007669/0.7518, allocations: 5.541 MB / 0.686 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00453/0.7563, allocations: 327.9 kB / 0.6863 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001069/0.7574, allocations: 346.1 kB / 0.6866 GB, free: 3.93 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.005244/0.7627, allocations: 2.412 MB / 0.6889 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007463/0.7634, allocations: 312 kB / 0.6892 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009888/0.7734, allocations: 5.372 MB / 0.6945 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.974e-05/0.7735, allocations: 46.48 kB / 0.6945 GB, free: 11.72 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.7735, allocations: 4 kB / 0.6945 GB, free: 11.71 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.042e-05/0.7735, allocations: 11.95 kB / 0.6946 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2147/0.9883, allocations: 13.08 MB / 0.7073 GB, free: 197.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/0.9883, allocations: 10.16 kB / 0.7073 GB, free: 197.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001959/0.9903, allocations: 425.2 kB / 0.7077 GB, free: 197.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002846/0.9932, allocations: 0.8903 MB / 0.7086 GB, free: 197.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004465/0.9936, allocations: 55.45 kB / 0.7087 GB, free: 197.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006195/0.9998, allocations: 4.833 MB / 0.7134 GB, free: 196.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.297e-05/0.9999, allocations: 16.22 kB / 0.7134 GB, free: 196.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/1.012, allocations: 8.02 MB / 0.7212 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008816/1.013, allocations: 366.6 kB / 0.7216 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006107/1.013, allocations: 55.62 kB / 0.7216 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/1.015, allocations: 144.1 kB / 0.7218 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004082/1.015, allocations: 170.5 kB / 0.7219 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000192/1.015, allocations: 77.52 kB / 0.722 GB, free: 193.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002704/1.018, allocations: 1.965 MB / 0.7239 GB, free: 192.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/1.018, allocations: 3.5 kB / 0.7239 GB, free: 192.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004941/1.023, allocations: 1.084 MB / 0.725 GB, free: 192.6 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.0005698/1.024, allocations: 197.1 kB / 0.7252 GB, free: 192.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01321/1.037, allocations: 9.654 MB / 0.7346 GB, free: 190.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/1.037, allocations: 3.875 kB / 0.7346 GB, free: 190.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002783/1.04, allocations: 2.247 MB / 0.7368 GB, free: 189.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/1.042, allocations: 456.3 kB / 0.7372 GB, free: 189.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/1.06, allocations: 14.33 MB / 0.7512 GB, free: 178.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003518/1.063, allocations: 3.712 MB / 0.7549 GB, free: 175.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/1.064, allocations: 286.2 kB / 0.7551 GB, free: 175.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/1.064, allocations: 0 / 0.7551 GB, free: 175.4 MB / 0.545 GB Notification: Performance of Templates: time 0.08591/1.15, allocations: 84.23 MB / 0.8374 GB, free: 91.91 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/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