Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001402/0.001401, allocations: 106.4 kB / 16.64 MB, free: 6.82 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.001653/0.001653, allocations: 190.5 kB / 17.56 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2172/0.2172, allocations: 43.52 MB / 314.3 MB, free: 0.6992 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 72.41 kB / 382.9 MB, free: 56.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09536, allocations: 57.79 MB / 440.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.04144/0.1368, allocations: 47.1 MB / 487.8 MB, free: 8.039 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02207/0.159, allocations: 9.639 MB / 497.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009973/0.169, allocations: 195.6 kB / 497.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005378/0.1744, allocations: 2.154 MB / 499.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005753/0.1803, allocations: 1.923 MB / 0.4899 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001815/0.1821, allocations: 0.5929 MB / 0.4905 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006362/0.1885, allocations: 4.471 MB / 0.4949 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004774/0.1933, allocations: 3.353 MB / 0.4981 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003031/0.1964, allocations: 1.67 MB / 0.4998 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003936/0.2004, allocations: 2.488 MB / 0.5022 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001231/0.2016, allocations: 348 kB / 0.5025 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002776/0.2044, allocations: 1.065 MB / 0.5036 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002684/0.2071, allocations: 2.077 MB / 0.5056 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004082/0.2112, allocations: 2.508 MB / 0.508 GB, free: 7.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007504/0.2188, allocations: 6.35 MB / 0.5142 GB, free: 1.066 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.2188, allocations: 0 / 0.5142 GB, free: 1.066 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2188, allocations: 3.938 kB / 0.5142 GB, free: 1.062 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003032/0.2191, allocations: 0 / 0.5142 GB, free: 1.062 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: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.012/0.2311, allocations: 5.261 MB / 0.5194 GB, free: 11.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.2312, allocations: 11.89 kB / 0.5194 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/0.2425, allocations: 3.195 MB / 0.5225 GB, free: 8.512 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005614/0.2481, allocations: 2.444 MB / 0.5249 GB, free: 6.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.2484, allocations: 266.9 kB / 0.5252 GB, free: 5.758 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001295/0.2497, allocations: 347.6 kB / 0.5255 GB, free: 5.418 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2211/0.4708, allocations: 12.65 MB / 0.5378 GB, free: 86.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002521/0.4711, allocations: 38.41 kB / 0.5379 GB, free: 86.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001436/0.4725, allocations: 158.8 kB / 0.538 GB, free: 86.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00597/0.4785, allocations: 3.031 MB / 0.541 GB, free: 86.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02298/0.5015, allocations: 11.33 MB / 0.5521 GB, free: 81.87 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05372/0.5553, allocations: 42.29 MB / 0.5934 GB, free: 38.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008416/0.5638, allocations: 4.715 MB / 0.598 GB, free: 33.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00296/0.5668, allocations: 2.442 MB / 0.6003 GB, free: 31.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009704/0.5678, allocations: 1.319 MB / 0.6016 GB, free: 30.01 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.5679, allocations: 56.56 kB / 0.6017 GB, free: 29.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=250): time 6.552e-06/0.5679, allocations: 0 / 0.6017 GB, free: 29.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=268): time 0.04559/0.6135, allocations: 19.52 MB / 0.6207 GB, free: 10.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.6136, allocations: 107.1 kB / 0.6209 GB, free: 10.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004429/0.618, allocations: 3.255 MB / 0.624 GB, free: 6.879 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004605/0.6185, allocations: 65.69 kB / 0.6241 GB, free: 6.809 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001553/0.6201, allocations: 3.284 MB / 0.6273 GB, free: 3.477 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/0.6212, allocations: 0.9753 MB / 0.6283 GB, free: 2.488 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002483/0.6237, allocations: 1.218 MB / 0.6294 GB, free: 1.258 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.153e-05/0.6237, allocations: 301.1 kB / 0.6297 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003953/0.6277, allocations: 2.495 MB / 0.6322 GB, free: 14.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007306/0.635, allocations: 5.888 MB / 0.6379 GB, free: 6.898 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01128/0.6464, allocations: 9.194 MB / 0.6469 GB, free: 12.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/0.6465, allocations: 36 kB / 0.6469 GB, free: 12.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.01836/0.6649, allocations: 9.18 MB / 0.6559 GB, free: 2.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001538/0.6651, allocations: 56.62 kB / 0.6559 GB, free: 2.766 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002198/0.6653, allocations: 116 kB / 0.6561 GB, free: 2.652 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00322/0.6686, allocations: 1.063 MB / 0.6571 GB, free: 1.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004836/0.6734, allocations: 1.4 MB / 0.6585 GB, free: 188 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007541/0.681, allocations: 5.547 MB / 0.6639 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00429/0.6854, allocations: 339.6 kB / 0.6642 GB, free: 10.17 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/0.6865, allocations: 352 kB / 0.6645 GB, free: 9.824 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 42 (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 (751): * Single equations (assignments): 744 * 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.004902/0.6914, allocations: 2.478 MB / 0.667 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008965/0.6923, allocations: 319.8 kB / 0.6673 GB, free: 7.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01012/0.7024, allocations: 5.376 MB / 0.6725 GB, free: 1.578 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-05/0.7026, allocations: 48.2 kB / 0.6726 GB, free: 1.531 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/0.7026, allocations: 8 kB / 0.6726 GB, free: 1.523 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.073e-05/0.7026, allocations: 15.94 kB / 0.6726 GB, free: 1.508 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02627/0.7289, allocations: 13.36 MB / 0.6856 GB, free: 3.898 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-05/0.729, allocations: 12 kB / 0.6856 GB, free: 3.887 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/0.7311, allocations: 423.3 kB / 0.6861 GB, free: 3.473 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002908/0.734, allocations: 0.8904 MB / 0.6869 GB, free: 2.578 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005223/0.7346, allocations: 52 kB / 0.687 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006296/0.7409, allocations: 4.832 MB / 0.6917 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.289e-05/0.7409, allocations: 19.88 kB / 0.6917 GB, free: 13.53 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/0.7538, allocations: 8.039 MB / 0.6996 GB, free: 5.273 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/0.7558, allocations: 0.7428 MB / 0.7003 GB, free: 4.508 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008721/0.7567, allocations: 52 kB / 0.7003 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001783/0.7585, allocations: 150 kB / 0.7005 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005157/0.759, allocations: 173.5 kB / 0.7006 GB, free: 4.141 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002558/0.7593, allocations: 80 kB / 0.7007 GB, free: 4.062 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003984/0.7633, allocations: 2.014 MB / 0.7027 GB, free: 2.051 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7633, allocations: 0 / 0.7027 GB, free: 2.051 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006095/0.7694, allocations: 1.116 MB / 0.7038 GB, free: 0.9375 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (209): * Single equations (assignments): 202 * 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.0007915/0.7702, allocations: 197.4 kB / 0.704 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01595/0.7862, allocations: 9.722 MB / 0.7135 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.45e-05/0.7862, allocations: 0 / 0.7135 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003454/0.7897, allocations: 2.269 MB / 0.7157 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003144/0.7929, allocations: 438.9 kB / 0.7161 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2064/0.9993, allocations: 14.82 MB / 0.7306 GB, free: 164.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007043/1.006, allocations: 3.824 MB / 0.7343 GB, free: 163.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001548/1.008, allocations: 291.8 kB / 0.7346 GB, free: 163.5 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/1.008, allocations: 0.5312 kB / 0.7346 GB, free: 163.5 MB / 0.4981 GB Notification: Performance of Templates: time 0.1071/1.115, allocations: 86.62 MB / 0.8192 GB, free: 90.11 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches