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.001321/0.001321, allocations: 104.8 kB / 16.41 MB, free: 6.438 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.001171/0.001171, allocations: 189.2 kB / 17.34 MB, free: 5.746 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.755/1.755, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2582/0.2582, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 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.00191/0.00191, allocations: 69.47 kB / 441.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.165, allocations: 57.79 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.02008/0.1852, allocations: 15.75 MB / 0.5033 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.1988, allocations: 4.494 MB / 0.5077 GB, free: 7.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004325/0.2032, allocations: 79.88 kB / 0.5077 GB, free: 7.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006154/0.2094, allocations: 2.254 MB / 0.5099 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009635/0.2192, allocations: 2.125 MB / 0.512 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002985/0.2222, allocations: 0.6239 MB / 0.5126 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009607/0.2318, allocations: 4.475 MB / 0.517 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006601/0.2385, allocations: 3.209 MB / 0.5201 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00455/0.2431, allocations: 1.67 MB / 0.5218 GB, free: 8.934 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006186/0.2493, allocations: 2.282 MB / 0.524 GB, free: 6.645 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002259/0.2516, allocations: 348 kB / 0.5243 GB, free: 6.305 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004166/0.2558, allocations: 1.049 MB / 0.5253 GB, free: 5.254 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003866/0.2597, allocations: 2.057 MB / 0.5273 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006176/0.2659, allocations: 2.489 MB / 0.5298 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4129/0.6789, allocations: 8.041 MB / 0.5376 GB, free: 10.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.848e-06/0.6789, allocations: 0 / 0.5376 GB, free: 10.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.6789, allocations: 1.344 kB / 0.5376 GB, free: 10.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005526/0.6795, allocations: 0.5938 kB / 0.5376 GB, free: 10.75 MB / 414.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.02685/0.7064, allocations: 5.268 MB / 0.5428 GB, free: 8.633 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.057e-05/0.7065, allocations: 12.55 kB / 0.5428 GB, free: 8.629 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01557/0.7221, allocations: 3.19 MB / 0.5459 GB, free: 8.297 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009803/0.7319, allocations: 2.488 MB / 0.5483 GB, free: 7.715 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004424/0.7324, allocations: 258.5 kB / 0.5486 GB, free: 7.707 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002915/0.7353, allocations: 342.5 kB / 0.5489 GB, free: 7.703 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03149/0.7668, allocations: 12.66 MB / 0.5613 GB, free: 4.461 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001732/0.767, allocations: 39.48 kB / 0.5613 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006315/0.7677, allocations: 160.5 kB / 0.5615 GB, free: 4.391 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005031/0.7727, allocations: 3.023 MB / 0.5644 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0301/0.8028, allocations: 11.34 MB / 0.5755 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09017/0.8931, allocations: 42.09 MB / 0.6166 GB, free: 1.773 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01095/0.9041, allocations: 4.706 MB / 0.6212 GB, free: 12.84 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004457/0.9086, allocations: 2.44 MB / 0.6236 GB, free: 10.39 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00159/0.9102, allocations: 1.318 MB / 0.6248 GB, free: 8.867 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.595e-05/0.9103, allocations: 56.56 kB / 0.6249 GB, free: 8.801 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 9.067e-06/0.9103, allocations: 0 / 0.6249 GB, free: 8.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.05606/0.9664, allocations: 19.52 MB / 0.644 GB, free: 5.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.9666, allocations: 99.11 kB / 0.6441 GB, free: 5.062 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/0.977, allocations: 3.268 MB / 0.6472 GB, free: 1.789 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009165/0.978, allocations: 63.58 kB / 0.6473 GB, free: 1.723 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003411/0.9814, allocations: 3.277 MB / 0.6505 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002088/0.9835, allocations: 0.9794 MB / 0.6515 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003142/0.9867, allocations: 1.211 MB / 0.6526 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.9869, allocations: 313.1 kB / 0.6529 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004498/0.9914, allocations: 2.491 MB / 0.6554 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007663/0.9991, allocations: 5.89 MB / 0.6611 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/1.012, allocations: 9.201 MB / 0.6701 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001469/1.012, allocations: 32 kB / 0.6701 GB, free: 7.555 MB / 0.5137 GB Notification: Performance of matching and sorting (n=813) (initialization): time 0.0213/1.034, allocations: 9.174 MB / 0.6791 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.034, allocations: 56 kB / 0.6792 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001653/1.034, allocations: 120 kB / 0.6793 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003201/1.037, allocations: 1.059 MB / 0.6803 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005852/1.043, allocations: 1.4 MB / 0.6817 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008429/1.052, allocations: 5.541 MB / 0.6871 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007392/1.059, allocations: 327.7 kB / 0.6874 GB, free: 6.246 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00219/1.061, allocations: 359.9 kB / 0.6877 GB, free: 5.895 MB / 0.5294 GB 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.01064/1.072, allocations: 2.491 MB / 0.6902 GB, free: 3.391 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001592/1.073, allocations: 319.8 kB / 0.6905 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01384/1.087, allocations: 5.375 MB / 0.6957 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.139e-05/1.087, allocations: 51.27 kB / 0.6958 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.51e-05/1.088, allocations: 4 kB / 0.6958 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.352e-05/1.088, allocations: 7.969 kB / 0.6958 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0346/1.122, allocations: 13.32 MB / 0.7088 GB, free: 68 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.942e-05/1.122, allocations: 12 kB / 0.7088 GB, free: 56 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/1.125, allocations: 420.2 kB / 0.7092 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003067/1.128, allocations: 0.8927 MB / 0.7101 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006148/1.128, allocations: 62.58 kB / 0.7101 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007235/1.136, allocations: 4.828 MB / 0.7149 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.62e-05/1.136, allocations: 19.97 kB / 0.7149 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01554/1.151, allocations: 8.03 MB / 0.7227 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004075/1.155, allocations: 0.7428 MB / 0.7234 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/1.157, allocations: 47.98 kB / 0.7235 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002272/1.159, allocations: 153.8 kB / 0.7236 GB, free: 0.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005926/1.159, allocations: 169.5 kB / 0.7238 GB, free: 344 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002753/1.16, allocations: 79.98 kB / 0.7239 GB, free: 264 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006538/1.166, allocations: 2.014 MB / 0.7258 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.2e-07/1.166, allocations: 0 / 0.7258 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008236/1.175, allocations: 1.12 MB / 0.7269 GB, free: 13.13 MB / 0.5762 GB 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.0009238/1.175, allocations: 202.4 kB / 0.7271 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01112/1.187, allocations: 6.125 MB / 0.7331 GB, free: 6.812 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.106e-05/1.187, allocations: 4 kB / 0.7331 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00349/1.19, allocations: 2.254 MB / 0.7353 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00372/1.194, allocations: 447.5 kB / 0.7357 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02852/1.222, allocations: 11.59 MB / 0.7471 GB, free: 8.348 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008934/1.231, allocations: 3.841 MB / 0.7508 GB, free: 4.477 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006635/1.238, allocations: 2.183 MB / 0.7529 GB, free: 2.285 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/1.24, allocations: 243.4 kB / 0.7532 GB, free: 2.047 MB / 0.5919 GB Notification: Performance of SimCode: time 1.553e-06/1.24, allocations: 0 / 0.7532 GB, free: 2.047 MB / 0.5919 GB Notification: Performance of Templates: time 0.4056/1.645, allocations: 34.92 MB / 0.7873 GB, free: 199.7 MB / 0.5919 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches