Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008841/0.000884, allocations: 172.8 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.225/1.225, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007814/0.0007817, allocations: 88.73 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2914/0.2914, allocations: 43.56 MB / 363.1 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003703, allocations: 12 kB / 432 MB, free: 5.602 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09528/0.09567, allocations: 58.86 MB / 490.8 MB, free: 10.65 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.2314/0.3271, allocations: 67.76 MB / 0.5455 GB, free: 2.066 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03252/0.3597, allocations: 14.32 MB / 0.5595 GB, free: 8.273 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01331/0.373, allocations: 329.2 kB / 0.5598 GB, free: 8.219 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01/0.3831, allocations: 3.533 MB / 0.5632 GB, free: 6.965 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02868/0.4118, allocations: 10.37 MB / 0.5734 GB, free: 2.32 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005156/0.417, allocations: 0.9796 MB / 0.5743 GB, free: 1.676 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04216/0.4592, allocations: 35.91 MB / 0.6094 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009819/0.469, allocations: 6.842 MB / 0.6161 GB, free: 9.84 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00377/0.4728, allocations: 1.841 MB / 0.6179 GB, free: 7.992 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004423/0.4773, allocations: 2.921 MB / 0.6207 GB, free: 5.062 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001096/0.4784, allocations: 212 kB / 0.6209 GB, free: 4.855 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002865/0.4813, allocations: 1.143 MB / 0.622 GB, free: 3.711 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002942/0.4843, allocations: 2.474 MB / 0.6245 GB, free: 1.23 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004476/0.4888, allocations: 2.728 MB / 0.6271 GB, free: 14.48 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008783/0.4976, allocations: 7.852 MB / 0.6348 GB, free: 6.609 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.4976, allocations: 0 / 0.6348 GB, free: 6.609 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4977, allocations: 0 / 0.6348 GB, free: 6.609 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003948/0.4981, allocations: 0 / 0.6348 GB, free: 6.609 MB / 458.7 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.01312/0.5112, allocations: 5.8 MB / 0.6405 GB, free: 0.7305 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.5112, allocations: 8.031 kB / 0.6405 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0233/0.5345, allocations: 3.449 MB / 0.6438 GB, free: 13.26 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009869/0.5445, allocations: 4.568 MB / 0.6483 GB, free: 8.609 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003883/0.5449, allocations: 329 kB / 0.6486 GB, free: 8.285 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00153/0.5464, allocations: 471.5 kB / 0.6491 GB, free: 7.824 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02163/0.5681, allocations: 13.56 MB / 0.6623 GB, free: 9.383 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001761/0.5683, allocations: 67.38 kB / 0.6624 GB, free: 9.316 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005769/0.5689, allocations: 215.8 kB / 0.6626 GB, free: 9.105 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004217/0.5731, allocations: 2.648 MB / 0.6651 GB, free: 6.457 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2092/0.7823, allocations: 11.79 MB / 0.6767 GB, free: 134.9 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05867/0.841, allocations: 54.36 MB / 0.7297 GB, free: 99.19 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01329/0.8543, allocations: 5.77 MB / 0.7354 GB, free: 97.01 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004547/0.8589, allocations: 3.543 MB / 0.7388 GB, free: 95.52 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006893/0.8596, allocations: 0.6894 MB / 0.7395 GB, free: 94.91 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/0.8597, allocations: 70.45 kB / 0.7396 GB, free: 94.86 MB / 490.7 MB Notification: Performance of pre-optimization done (n=254): time 5.45e-06/0.8597, allocations: 0 / 0.7396 GB, free: 94.86 MB / 490.7 MB Notification: Performance of matching and sorting (n=324): time 0.09397/0.9537, allocations: 37.25 MB / 0.776 GB, free: 66.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.152e-05/0.9538, allocations: 265.4 kB / 0.7762 GB, free: 66.54 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006462/0.9603, allocations: 5.292 MB / 0.7814 GB, free: 61.26 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006537/0.961, allocations: 71.34 kB / 0.7814 GB, free: 61.18 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001659/0.9627, allocations: 3.998 MB / 0.7853 GB, free: 57.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/0.9638, allocations: 1.2 MB / 0.7865 GB, free: 56 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004104/0.9642, allocations: 167.9 kB / 0.7867 GB, free: 55.83 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002728/0.9645, allocations: 0.645 MB / 0.7873 GB, free: 55.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004388/0.9689, allocations: 3.666 MB / 0.7909 GB, free: 51.51 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005592/0.9745, allocations: 7.936 MB / 0.7986 GB, free: 41.47 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/0.9859, allocations: 12.46 MB / 0.8108 GB, free: 26.91 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.586e-05/0.986, allocations: 44 kB / 0.8108 GB, free: 26.86 MB / 490.7 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.02261/1.009, allocations: 13.91 MB / 0.8244 GB, free: 12.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.507e-05/1.009, allocations: 68 kB / 0.8245 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/1.009, allocations: 148 kB / 0.8246 GB, free: 12.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006109/1.015, allocations: 2.757 MB / 0.8273 GB, free: 9.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005959/1.021, allocations: 1.825 MB / 0.8291 GB, free: 8.102 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02003/1.041, allocations: 16.63 MB / 0.8453 GB, free: 7.211 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006085/1.047, allocations: 487.2 kB / 0.8458 GB, free: 6.734 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/1.049, allocations: 466.5 kB / 0.8463 GB, free: 6.281 MB / 0.4948 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005085/1.054, allocations: 2.821 MB / 0.849 GB, free: 3.445 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.055, allocations: 497.6 kB / 0.8495 GB, free: 2.953 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01437/1.069, allocations: 8.164 MB / 0.8575 GB, free: 10.72 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.159e-05/1.069, allocations: 32 kB / 0.8575 GB, free: 10.69 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-05/1.069, allocations: 12 kB / 0.8575 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.839e-05/1.069, allocations: 15.94 kB / 0.8575 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2234/1.293, allocations: 17.38 MB / 0.8745 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.24e-05/1.293, allocations: 6.344 kB / 0.8745 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002413/1.295, allocations: 0.5211 MB / 0.875 GB, free: 153.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005777/1.301, allocations: 2.479 MB / 0.8774 GB, free: 153.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005416/1.301, allocations: 68.42 kB / 0.8775 GB, free: 153.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01599/1.317, allocations: 14.75 MB / 0.8919 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/1.318, allocations: 16.53 kB / 0.8919 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01665/1.334, allocations: 12.72 MB / 0.9043 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002624/1.337, allocations: 1.122 MB / 0.9054 GB, free: 142 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000847/1.338, allocations: 65.92 kB / 0.9055 GB, free: 141.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/1.34, allocations: 236.2 kB / 0.9057 GB, free: 141.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005846/1.341, allocations: 211.5 kB / 0.9059 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002416/1.341, allocations: 89.75 kB / 0.906 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004754/1.346, allocations: 3.333 MB / 0.9093 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.21e-07/1.346, allocations: 0 / 0.9093 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006977/1.353, allocations: 1.585 MB / 0.9108 GB, free: 140.5 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 21,(3,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007491/1.354, allocations: 208 kB / 0.911 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0143/1.368, allocations: 9.029 MB / 0.9198 GB, free: 137 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/1.368, allocations: 0 / 0.9198 GB, free: 137 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004934/1.373, allocations: 3.57 MB / 0.9233 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00844/1.381, allocations: 0.6438 MB / 0.9239 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02299/1.404, allocations: 18 MB / 0.9415 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004478/1.409, allocations: 4.385 MB / 0.9458 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00162/1.41, allocations: 416.8 kB / 0.9462 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of SimCode: time 5.81e-07/1.411, allocations: 0 / 0.9462 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.326/1.737, allocations: 137.8 MB / 1.081 GB, free: 144.4 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches