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.001633/0.001633, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001314/0.001313, allocations: 187 kB / 19.34 MB, free: 3.641 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.349/1.349, allocations: 222.9 MB / 243 MB, free: 15.14 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.263/0.263, allocations: 44.18 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001342, allocations: 62.41 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1316, allocations: 60.82 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01591/0.1475, allocations: 15 MB / 485.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.1578, allocations: 4.423 MB / 490.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003036/0.1608, allocations: 75.88 kB / 490.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004584/0.1654, allocations: 2.227 MB / 492.4 MB, free: 7.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005276/0.1708, allocations: 2.012 MB / 494.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.1726, allocations: 0.6122 MB / 495 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006475/0.1791, allocations: 4.286 MB / 499.3 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004967/0.1841, allocations: 3.162 MB / 0.4907 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.187, allocations: 1.577 MB / 0.4923 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003765/0.1908, allocations: 2.227 MB / 0.4944 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.1921, allocations: 344 kB / 0.4948 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002888/0.195, allocations: 1.049 MB / 0.4958 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002751/0.1978, allocations: 1.995 MB / 0.4977 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004168/0.202, allocations: 2.399 MB / 0.5001 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2986/0.5006, allocations: 7.801 MB / 0.5077 GB, free: 22.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.5006, allocations: 1.125 kB / 0.5077 GB, free: 22.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5006, allocations: 0 / 0.5077 GB, free: 22.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003775/0.501, allocations: 0 / 0.5077 GB, free: 22.12 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.01934/0.5204, allocations: 5.084 MB / 0.5127 GB, free: 20.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.93e-05/0.5205, allocations: 9.938 kB / 0.5127 GB, free: 20.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01306/0.5335, allocations: 3.19 MB / 0.5158 GB, free: 19.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01111/0.5447, allocations: 2.404 MB / 0.5181 GB, free: 19.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004962/0.5452, allocations: 249.4 kB / 0.5184 GB, free: 19.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002529/0.5478, allocations: 338.2 kB / 0.5187 GB, free: 19.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02306/0.5708, allocations: 12.24 MB / 0.5306 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001303/0.571, allocations: 32.62 kB / 0.5307 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005009/0.5715, allocations: 153.3 kB / 0.5308 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004274/0.5758, allocations: 2.842 MB / 0.5336 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02046/0.5963, allocations: 11.14 MB / 0.5445 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06792/0.6642, allocations: 40.51 MB / 0.584 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009386/0.6737, allocations: 4.687 MB / 0.5886 GB, free: 7.688 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003586/0.6773, allocations: 2.431 MB / 0.591 GB, free: 5.254 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001275/0.6786, allocations: 1.317 MB / 0.5923 GB, free: 3.723 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.6786, allocations: 52.56 kB / 0.5923 GB, free: 3.664 MB / 430.1 MB Notification: Performance of pre-optimization done (n=249): time 5.881e-06/0.6786, allocations: 4 kB / 0.5923 GB, free: 3.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=267): time 0.04507/0.7237, allocations: 18.67 MB / 0.6106 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.7238, allocations: 77.25 kB / 0.6106 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005207/0.729, allocations: 3.178 MB / 0.6137 GB, free: 13.63 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000455/0.7295, allocations: 61.7 kB / 0.6138 GB, free: 13.56 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00254/0.7321, allocations: 3.121 MB / 0.6168 GB, free: 10.46 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/0.7334, allocations: 0.9689 MB / 0.6178 GB, free: 9.496 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001702/0.7351, allocations: 1.183 MB / 0.6189 GB, free: 8.305 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.7352, allocations: 301.1 kB / 0.6192 GB, free: 8.008 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003629/0.7388, allocations: 2.467 MB / 0.6216 GB, free: 5.535 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007309/0.7462, allocations: 5.727 MB / 0.6272 GB, free: 14.25 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01269/0.7589, allocations: 8.989 MB / 0.636 GB, free: 4.145 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/0.759, allocations: 32 kB / 0.636 GB, free: 4.113 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01746/0.7765, allocations: 9.009 MB / 0.6448 GB, free: 11.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.7e-05/0.7767, allocations: 56 kB / 0.6449 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001439/0.7768, allocations: 112 kB / 0.645 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003028/0.7798, allocations: 1.055 MB / 0.646 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004941/0.7848, allocations: 1.345 MB / 0.6473 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008113/0.7929, allocations: 5.542 MB / 0.6528 GB, free: 3.426 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005332/0.7983, allocations: 323.9 kB / 0.6531 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007499/0.7991, allocations: 336 kB / 0.6534 GB, free: 2.785 MB / 494.1 MB 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.005109/0.8042, allocations: 2.416 MB / 0.6557 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006521/0.8049, allocations: 311.9 kB / 0.656 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009066/0.8139, allocations: 5.368 MB / 0.6613 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.32e-05/0.814, allocations: 43.98 kB / 0.6613 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.8141, allocations: 5.594 kB / 0.6613 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/0.8141, allocations: 7.969 kB / 0.6613 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/0.8383, allocations: 13.03 MB / 0.6741 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.588e-05/0.8384, allocations: 15.94 kB / 0.6741 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001766/0.8401, allocations: 423.3 kB / 0.6745 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002712/0.8429, allocations: 0.8956 MB / 0.6754 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003323/0.8432, allocations: 54.66 kB / 0.6754 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006205/0.8494, allocations: 4.825 MB / 0.6801 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.63e-05/0.8495, allocations: 19.88 kB / 0.6801 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01252/0.862, allocations: 8.018 MB / 0.688 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.8633, allocations: 369 kB / 0.6883 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006151/0.8639, allocations: 51.92 kB / 0.6884 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.8654, allocations: 150.5 kB / 0.6885 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003942/0.8658, allocations: 169.6 kB / 0.6887 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/0.866, allocations: 79.98 kB / 0.6888 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003321/0.8693, allocations: 1.957 MB / 0.6907 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8693, allocations: 0 / 0.6907 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006468/0.8758, allocations: 1.084 MB / 0.6917 GB, free: 10.9 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 (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.000731/0.8766, allocations: 197.2 kB / 0.6919 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009632/0.8862, allocations: 6.048 MB / 0.6978 GB, free: 4.66 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/0.8863, allocations: 0 / 0.6978 GB, free: 4.66 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003227/0.8895, allocations: 2.259 MB / 0.7 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003071/0.8926, allocations: 464.5 kB / 0.7005 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2644/1.157, allocations: 11.24 MB / 0.7114 GB, free: 189.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004126/1.161, allocations: 3.713 MB / 0.7151 GB, free: 188.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003942/1.165, allocations: 2.159 MB / 0.7172 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006998/1.166, allocations: 237.1 kB / 0.7174 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of SimCode: time 9.41e-07/1.166, allocations: 0 / 0.7174 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.05462/1.22, allocations: 32.7 MB / 0.7493 GB, free: 162.8 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 -s cvode -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