Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2102/0.2102, allocations: 46.11 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 74.75 kB / 417.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1094, allocations: 62.45 MB / 479.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.2515/0.361, allocations: 46.07 MB / 0.5137 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0202/0.3812, allocations: 9.545 MB / 0.523 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008642/0.3899, allocations: 190.9 kB / 0.5232 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004646/0.3946, allocations: 2.188 MB / 0.5253 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005058/0.3997, allocations: 1.853 MB / 0.5271 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.4013, allocations: 0.5706 MB / 0.5277 GB, free: 6.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006837/0.4082, allocations: 6.016 MB / 0.5336 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0038/0.412, allocations: 3.057 MB / 0.5366 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00251/0.4146, allocations: 1.391 MB / 0.5379 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002837/0.4174, allocations: 2.316 MB / 0.5402 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006706/0.4181, allocations: 242.2 kB / 0.5404 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002022/0.4201, allocations: 0.9948 MB / 0.5414 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001565/0.4217, allocations: 1.888 MB / 0.5432 GB, free: 136 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00267/0.4244, allocations: 2.295 MB / 0.5455 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006067/0.4305, allocations: 6.038 MB / 0.5514 GB, free: 8.805 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.729e-06/0.4305, allocations: 4 kB / 0.5514 GB, free: 8.801 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4305, allocations: 0 / 0.5514 GB, free: 8.801 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002005/0.4307, allocations: 3.938 kB / 0.5514 GB, free: 8.797 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.009301/0.44, allocations: 5.052 MB / 0.5563 GB, free: 3.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.4401, allocations: 12.03 kB / 0.5563 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/0.4504, allocations: 3.187 MB / 0.5594 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005004/0.4555, allocations: 2.342 MB / 0.5617 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.4557, allocations: 250 kB / 0.5619 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/0.4567, allocations: 341.2 kB / 0.5623 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01935/0.4761, allocations: 12.24 MB / 0.5742 GB, free: 1.125 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/0.4763, allocations: 35.66 kB / 0.5743 GB, free: 1.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005018/0.4768, allocations: 153.8 kB / 0.5744 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004224/0.481, allocations: 2.846 MB / 0.5772 GB, free: 14.15 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02015/0.5012, allocations: 11.12 MB / 0.588 GB, free: 3.02 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05517/0.5564, allocations: 40.72 MB / 0.6278 GB, free: 9.492 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009179/0.5656, allocations: 4.684 MB / 0.6324 GB, free: 4.586 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003253/0.5689, allocations: 2.431 MB / 0.6348 GB, free: 2.156 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/0.5701, allocations: 1.319 MB / 0.636 GB, free: 0.625 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.5702, allocations: 56.55 kB / 0.6361 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 4.729e-06/0.5702, allocations: 0 / 0.6361 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04346/0.6136, allocations: 18.68 MB / 0.6543 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/0.6138, allocations: 77.41 kB / 0.6544 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005253/0.619, allocations: 3.163 MB / 0.6575 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003426/0.6194, allocations: 64.12 kB / 0.6576 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002166/0.6216, allocations: 3.11 MB / 0.6606 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001174/0.6228, allocations: 0.9703 MB / 0.6615 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002144/0.6249, allocations: 1.185 MB / 0.6627 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.625, allocations: 305.1 kB / 0.663 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003726/0.6288, allocations: 2.467 MB / 0.6654 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006231/0.635, allocations: 5.738 MB / 0.671 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.6456, allocations: 8.98 MB / 0.6798 GB, free: 472 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.392e-05/0.6457, allocations: 32 kB / 0.6798 GB, free: 440 kB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01634/0.662, allocations: 9.006 MB / 0.6886 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.6622, allocations: 52 kB / 0.6887 GB, free: 7.355 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001597/0.6624, allocations: 112 kB / 0.6888 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003091/0.6655, allocations: 1.055 MB / 0.6898 GB, free: 6.188 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004426/0.6699, allocations: 1.357 MB / 0.6911 GB, free: 4.828 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007016/0.677, allocations: 5.146 MB / 0.6961 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003631/0.6806, allocations: 323.9 kB / 0.6965 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00093/0.6816, allocations: 347 kB / 0.6968 GB, free: 14.9 MB / 0.545 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.004165/0.6857, allocations: 2.405 MB / 0.6991 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006605/0.6864, allocations: 315.9 kB / 0.6994 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009479/0.6959, allocations: 5.374 MB / 0.7047 GB, free: 6.738 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.086e-05/0.696, allocations: 51.03 kB / 0.7047 GB, free: 6.691 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.696, allocations: 0 / 0.7047 GB, free: 6.691 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.249e-05/0.6961, allocations: 16.05 kB / 0.7047 GB, free: 6.676 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2253/0.9214, allocations: 13.05 MB / 0.7175 GB, free: 190.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-05/0.9214, allocations: 11.84 kB / 0.7175 GB, free: 190.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001811/0.9232, allocations: 422.2 kB / 0.7179 GB, free: 190.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002856/0.9261, allocations: 0.898 MB / 0.7188 GB, free: 190 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003446/0.9265, allocations: 57.36 kB / 0.7188 GB, free: 190 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006029/0.9325, allocations: 4.492 MB / 0.7232 GB, free: 187.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/0.9326, allocations: 16.19 kB / 0.7232 GB, free: 187.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/0.944, allocations: 8.025 MB / 0.7311 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007803/0.9448, allocations: 364.6 kB / 0.7314 GB, free: 184.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005072/0.9453, allocations: 62.52 kB / 0.7315 GB, free: 184.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.9466, allocations: 146.2 kB / 0.7316 GB, free: 184.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003989/0.947, allocations: 174 kB / 0.7318 GB, free: 184.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000165/0.9471, allocations: 78.03 kB / 0.7319 GB, free: 184.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002445/0.9496, allocations: 1.955 MB / 0.7338 GB, free: 183.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9496, allocations: 0 / 0.7338 GB, free: 183.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004398/0.954, allocations: 1.065 MB / 0.7348 GB, free: 183.7 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.000479/0.9545, allocations: 194.2 kB / 0.735 GB, free: 183.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006994/0.9615, allocations: 6 MB / 0.7409 GB, free: 181.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/0.9615, allocations: 0 / 0.7409 GB, free: 181.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002606/0.9642, allocations: 2.251 MB / 0.743 GB, free: 180.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002334/0.9665, allocations: 437.2 kB / 0.7435 GB, free: 180.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01656/0.9831, allocations: 14.31 MB / 0.7574 GB, free: 169.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00327/0.9864, allocations: 3.706 MB / 0.7611 GB, free: 166.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/0.9876, allocations: 286.8 kB / 0.7613 GB, free: 166 MB / 0.545 GB Notification: Performance of SimCode: time 1.372e-06/0.9876, allocations: 0 / 0.7613 GB, free: 166 MB / 0.545 GB Notification: Performance of Templates: time 0.0833/1.071, allocations: 84.03 MB / 0.8434 GB, free: 82.45 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches