Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 202.7 kB / 16.79 MB, free: 6.84 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.751/1.751, allocations: 205.1 MB / 222.6 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5634/0.5634, allocations: 43.5 MB / 313.5 MB, free: 8.504 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.001662/0.001662, allocations: 75.88 kB / 382 MB, free: 8.734 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.18, allocations: 57.78 MB / 439.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.4256/0.6056, allocations: 74.66 MB / 0.5024 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05018/0.6559, allocations: 15 MB / 0.5171 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02453/0.6805, allocations: 325.9 kB / 0.5174 GB, free: 8.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.6906, allocations: 4.168 MB / 0.5214 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009714/0.7004, allocations: 2.277 MB / 0.5237 GB, free: 5.016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003508/0.7039, allocations: 1.003 MB / 0.5246 GB, free: 4.547 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01809/0.7221, allocations: 9.558 MB / 0.534 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01148/0.7336, allocations: 5.055 MB / 0.5389 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007891/0.7416, allocations: 2.032 MB / 0.5409 GB, free: 9.816 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008253/0.75, allocations: 3.368 MB / 0.5442 GB, free: 6.438 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002597/0.7526, allocations: 352 kB / 0.5445 GB, free: 6.094 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006024/0.7587, allocations: 1.276 MB / 0.5458 GB, free: 4.816 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005944/0.7646, allocations: 2.719 MB / 0.5484 GB, free: 2.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009446/0.7741, allocations: 3.099 MB / 0.5515 GB, free: 14.97 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01734/0.7915, allocations: 9.754 MB / 0.561 GB, free: 5.188 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.79e-05/0.7916, allocations: 4 kB / 0.561 GB, free: 5.184 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.7916, allocations: 0 / 0.561 GB, free: 5.184 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006301/0.7923, allocations: 3.938 kB / 0.561 GB, free: 5.18 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.02657/0.8189, allocations: 7.041 MB / 0.5679 GB, free: 14.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.245e-05/0.819, allocations: 12.03 kB / 0.5679 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02674/0.8457, allocations: 3.366 MB / 0.5712 GB, free: 10.67 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01358/0.8593, allocations: 4.57 MB / 0.5756 GB, free: 6.016 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003722/0.8598, allocations: 337.2 kB / 0.5759 GB, free: 5.684 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002494/0.8623, allocations: 463.5 kB / 0.5764 GB, free: 5.23 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03254/0.8948, allocations: 13.58 MB / 0.5897 GB, free: 6.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002875/0.8952, allocations: 63.44 kB / 0.5897 GB, free: 6.707 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001392/0.8966, allocations: 211.8 kB / 0.5899 GB, free: 6.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004921/0.9015, allocations: 2.656 MB / 0.5925 GB, free: 3.844 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02657/0.9281, allocations: 11.82 MB / 0.604 GB, free: 8.004 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4322/1.36, allocations: 54.33 MB / 0.6571 GB, free: 108.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/1.373, allocations: 5.777 MB / 0.6627 GB, free: 107.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004217/1.377, allocations: 3.557 MB / 0.6662 GB, free: 105.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006203/1.378, allocations: 0.6852 MB / 0.6669 GB, free: 105.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/1.378, allocations: 58.12 kB / 0.6669 GB, free: 105.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=254): time 5.69e-06/1.378, allocations: 0 / 0.6669 GB, free: 105.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=324): time 0.104/1.482, allocations: 37.22 MB / 0.7033 GB, free: 92.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.765e-05/1.482, allocations: 269.8 kB / 0.7036 GB, free: 92.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00705/1.489, allocations: 5.313 MB / 0.7087 GB, free: 90.35 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009444/1.49, allocations: 74.58 kB / 0.7088 GB, free: 90.29 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003022/1.493, allocations: 3.999 MB / 0.7127 GB, free: 86.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.495, allocations: 1.201 MB / 0.7139 GB, free: 85.92 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002146/1.497, allocations: 1.637 MB / 0.7155 GB, free: 85 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.44e-05/1.497, allocations: 308.5 kB / 0.7158 GB, free: 84.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004726/1.502, allocations: 3.693 MB / 0.7194 GB, free: 81.03 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006717/1.509, allocations: 7.972 MB / 0.7272 GB, free: 71.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/1.521, allocations: 12.5 MB / 0.7394 GB, free: 56.51 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001453/1.521, allocations: 44.88 kB / 0.7394 GB, free: 56.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.0298/1.551, allocations: 13.96 MB / 0.7531 GB, free: 42.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001949/1.551, allocations: 71.44 kB / 0.7531 GB, free: 42.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003128/1.551, allocations: 152 kB / 0.7533 GB, free: 42.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007124/1.559, allocations: 2.764 MB / 0.756 GB, free: 39.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006627/1.565, allocations: 1.829 MB / 0.7578 GB, free: 37.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02003/1.585, allocations: 16.61 MB / 0.774 GB, free: 20.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007649/1.593, allocations: 487.1 kB / 0.7744 GB, free: 20.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001805/1.595, allocations: 467.9 kB / 0.7749 GB, free: 19.84 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 42 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (973): * Single equations (assignments): 968 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (4,23,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006834/1.602, allocations: 2.832 MB / 0.7777 GB, free: 17 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001837/1.603, allocations: 0.4897 MB / 0.7781 GB, free: 16.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01483/1.618, allocations: 8.173 MB / 0.7861 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-05/1.618, allocations: 39.98 kB / 0.7862 GB, free: 8.223 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.874e-05/1.618, allocations: 12 kB / 0.7862 GB, free: 8.211 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.396e-05/1.619, allocations: 11.95 kB / 0.7862 GB, free: 8.199 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03935/1.658, allocations: 17.41 MB / 0.8032 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.532e-05/1.658, allocations: 8.406 kB / 0.8032 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002797/1.661, allocations: 0.5187 MB / 0.8037 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007128/1.668, allocations: 2.479 MB / 0.8061 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008483/1.669, allocations: 67.92 kB / 0.8062 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02096/1.69, allocations: 14.76 MB / 0.8206 GB, free: 4.613 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/1.69, allocations: 11.94 kB / 0.8206 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3227/2.013, allocations: 12.76 MB / 0.8331 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003883/2.017, allocations: 1.101 MB / 0.8341 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001713/2.018, allocations: 65.33 kB / 0.8342 GB, free: 156.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003491/2.022, allocations: 229.4 kB / 0.8344 GB, free: 156.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007364/2.022, allocations: 208.1 kB / 0.8346 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002627/2.023, allocations: 91.81 kB / 0.8347 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005538/2.028, allocations: 3.371 MB / 0.838 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.71e-07/2.028, allocations: 0 / 0.838 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01071/2.039, allocations: 1.573 MB / 0.8395 GB, free: 155.3 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009454/2.04, allocations: 215 kB / 0.8397 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01814/2.058, allocations: 9.106 MB / 0.8486 GB, free: 152 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/2.058, allocations: 1.156 kB / 0.8486 GB, free: 152 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006398/2.065, allocations: 3.57 MB / 0.8521 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008706/2.073, allocations: 0.6402 MB / 0.8527 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03949/2.113, allocations: 17.96 MB / 0.8703 GB, free: 140.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01474/2.128, allocations: 4.416 MB / 0.8746 GB, free: 139.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.01042/2.138, allocations: 2.509 MB / 0.877 GB, free: 139.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002596/2.141, allocations: 356.2 kB / 0.8774 GB, free: 139 MB / 0.5137 GB Notification: Performance of SimCode: time 1.132e-06/2.141, allocations: 3.938 kB / 0.8774 GB, free: 139 MB / 0.5137 GB Notification: Performance of Templates: time 0.1292/2.27, allocations: 67.61 MB / 0.9434 GB, free: 82.54 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches