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.002275/0.002275, allocations: 178 kB / 16.41 MB, free: 5.707 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.685/1.685, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007496/0.0007499, allocations: 96.97 kB / 270.9 MB, free: 8.344 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.3979/0.3979, allocations: 43.56 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003927/0.0003927, allocations: 8 kB / 431.4 MB, free: 5.906 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1408, allocations: 58.85 MB / 490.2 MB, free: 10.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3084/0.4493, allocations: 67.74 MB / 0.5449 GB, free: 2.219 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04208/0.4915, allocations: 14.33 MB / 0.5589 GB, free: 8.426 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01929/0.5108, allocations: 325.4 kB / 0.5592 GB, free: 8.375 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01326/0.5241, allocations: 3.542 MB / 0.5627 GB, free: 7.113 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0348/0.559, allocations: 10.35 MB / 0.5728 GB, free: 2.512 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005688/0.5647, allocations: 0.919 MB / 0.5737 GB, free: 1.906 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04616/0.6109, allocations: 35.84 MB / 0.6087 GB, free: 1.184 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01158/0.6225, allocations: 6.356 MB / 0.6149 GB, free: 10.8 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00462/0.6272, allocations: 1.837 MB / 0.6167 GB, free: 8.957 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005304/0.6325, allocations: 2.925 MB / 0.6195 GB, free: 6.023 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00159/0.6341, allocations: 212 kB / 0.6197 GB, free: 5.816 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003432/0.6376, allocations: 0.9987 MB / 0.6207 GB, free: 4.816 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003907/0.6415, allocations: 2.47 MB / 0.6231 GB, free: 2.34 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002722/0.6443, allocations: 1.193 MB / 0.6243 GB, free: 1.137 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.6549, allocations: 7.859 MB / 0.632 GB, free: 9.258 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.125e-05/0.655, allocations: 0 / 0.632 GB, free: 9.258 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.149e-06/0.655, allocations: 0 / 0.632 GB, free: 9.258 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006622/0.6557, allocations: 0 / 0.632 GB, free: 9.258 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.01724/0.6729, allocations: 5.87 MB / 0.6377 GB, free: 3.309 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.673, allocations: 12.03 kB / 0.6377 GB, free: 3.297 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02694/0.6999, allocations: 3.448 MB / 0.6411 GB, free: 15.83 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01204/0.712, allocations: 4.482 MB / 0.6455 GB, free: 11.27 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003841/0.7125, allocations: 336.6 kB / 0.6458 GB, free: 10.94 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002092/0.7146, allocations: 459.5 kB / 0.6462 GB, free: 10.49 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02801/0.7426, allocations: 13.56 MB / 0.6595 GB, free: 12.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003513/0.743, allocations: 63.44 kB / 0.6595 GB, free: 11.99 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001632/0.7446, allocations: 207.8 kB / 0.6597 GB, free: 11.79 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004721/0.7494, allocations: 2.656 MB / 0.6623 GB, free: 9.129 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2558/1.005, allocations: 11.78 MB / 0.6738 GB, free: 134.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06048/1.066, allocations: 54.35 MB / 0.7269 GB, free: 99.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01474/1.081, allocations: 5.763 MB / 0.7325 GB, free: 97.4 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005454/1.086, allocations: 3.541 MB / 0.736 GB, free: 95.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007755/1.087, allocations: 0.6894 MB / 0.7366 GB, free: 95.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.13e-05/1.087, allocations: 67.44 kB / 0.7367 GB, free: 95.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=254): time 5.791e-06/1.087, allocations: 1.062 kB / 0.7367 GB, free: 95.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=324): time 0.1083/1.195, allocations: 37.25 MB / 0.7731 GB, free: 69.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/1.195, allocations: 269.4 kB / 0.7733 GB, free: 69.25 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007866/1.203, allocations: 5.284 MB / 0.7785 GB, free: 63.98 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008759/1.204, allocations: 77.7 kB / 0.7786 GB, free: 63.89 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002078/1.206, allocations: 3.996 MB / 0.7825 GB, free: 59.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001433/1.208, allocations: 1.203 MB / 0.7837 GB, free: 58.71 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004115/1.208, allocations: 160 kB / 0.7838 GB, free: 58.55 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003083/1.208, allocations: 0.6489 MB / 0.7844 GB, free: 57.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004572/1.213, allocations: 3.662 MB / 0.788 GB, free: 54.22 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00626/1.219, allocations: 7.937 MB / 0.7958 GB, free: 44.18 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006897/1.226, allocations: 5.305 MB / 0.8009 GB, free: 38.86 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.99e-05/1.226, allocations: 40 kB / 0.801 GB, free: 38.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.02527/1.252, allocations: 13.9 MB / 0.8146 GB, free: 24.87 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/1.252, allocations: 70.06 kB / 0.8146 GB, free: 24.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002304/1.252, allocations: 148 kB / 0.8148 GB, free: 24.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006727/1.259, allocations: 2.776 MB / 0.8175 GB, free: 21.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006597/1.265, allocations: 1.832 MB / 0.8193 GB, free: 20.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01947/1.285, allocations: 16.64 MB / 0.8355 GB, free: 3.148 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007616/1.293, allocations: 490.5 kB / 0.836 GB, free: 2.672 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001839/1.294, allocations: 463.9 kB / 0.8364 GB, free: 2.219 MB / 490.7 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 (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.006834/1.301, allocations: 2.825 MB / 0.8392 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001863/1.303, allocations: 0.4898 MB / 0.8397 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01754/1.321, allocations: 8.149 MB / 0.8476 GB, free: 6.668 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.367e-05/1.321, allocations: 42.67 kB / 0.8477 GB, free: 6.629 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-05/1.321, allocations: 8 kB / 0.8477 GB, free: 6.621 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.359e-05/1.321, allocations: 23.94 kB / 0.8477 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04213/1.363, allocations: 17.38 MB / 0.8647 GB, free: 5.133 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.38e-05/1.363, allocations: 4.75 kB / 0.8647 GB, free: 5.129 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00281/1.366, allocations: 0.5109 MB / 0.8652 GB, free: 4.617 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006683/1.373, allocations: 2.491 MB / 0.8676 GB, free: 2.117 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006908/1.373, allocations: 63.98 kB / 0.8677 GB, free: 2.055 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2839/1.657, allocations: 14.73 MB / 0.882 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/1.657, allocations: 12.84 kB / 0.8821 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02134/1.679, allocations: 12.73 MB / 0.8945 GB, free: 146.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003764/1.683, allocations: 1.117 MB / 0.8956 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001379/1.684, allocations: 63.62 kB / 0.8956 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003453/1.687, allocations: 238.4 kB / 0.8959 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005831/1.688, allocations: 210.4 kB / 0.8961 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002408/1.688, allocations: 94.95 kB / 0.8962 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005082/1.693, allocations: 3.336 MB / 0.8994 GB, free: 144.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.402e-06/1.693, allocations: 0 / 0.8994 GB, free: 144.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007537/1.701, allocations: 1.587 MB / 0.901 GB, free: 144.8 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.0007027/1.702, allocations: 205.7 kB / 0.9012 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01503/1.717, allocations: 9.035 MB / 0.91 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.348e-05/1.717, allocations: 2.062 kB / 0.91 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00647/1.723, allocations: 3.559 MB / 0.9135 GB, free: 139.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007431/1.731, allocations: 0.6452 MB / 0.9141 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02833/1.759, allocations: 18 MB / 0.9317 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005656/1.765, allocations: 4.385 MB / 0.9359 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/1.767, allocations: 418.1 kB / 0.9363 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.012e-06/1.767, allocations: 0 / 0.9363 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.4351/2.202, allocations: 138 MB / 1.071 GB, free: 146.2 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