Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001104/0.001104, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001001/0.001001, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 242.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.226/0.226, allocations: 44.18 MB / 337.3 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 62.86 kB / 409.1 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.12, allocations: 60.82 MB / 469.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01599/0.136, allocations: 14.77 MB / 484.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.1468, allocations: 5.011 MB / 489.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003285/0.1501, allocations: 99.69 kB / 489.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008226/0.1583, allocations: 4.162 MB / 494 MB, free: 6.203 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006716/0.1652, allocations: 2.375 MB / 496.3 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002736/0.1679, allocations: 1.072 MB / 497.4 MB, free: 2.746 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.178, allocations: 7.063 MB / 0.4927 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006759/0.1848, allocations: 5.159 MB / 0.4977 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004452/0.1893, allocations: 2.243 MB / 0.4999 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006051/0.1954, allocations: 3.076 MB / 0.5029 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002336/0.1977, allocations: 500 kB / 0.5034 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.248/0.4457, allocations: 1.376 MB / 0.5047 GB, free: 20.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004314/0.4501, allocations: 2.787 MB / 0.5074 GB, free: 20.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006779/0.4569, allocations: 3.179 MB / 0.5105 GB, free: 19.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01437/0.4713, allocations: 9.661 MB / 0.52 GB, free: 18.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.4713, allocations: 0 / 0.52 GB, free: 18.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.4714, allocations: 0 / 0.52 GB, free: 18.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004639/0.4718, allocations: 0.9375 kB / 0.52 GB, free: 18.62 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02387/0.4957, allocations: 6.912 MB / 0.5267 GB, free: 15.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.4958, allocations: 8.594 kB / 0.5267 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02845/0.5242, allocations: 3.336 MB / 0.53 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0125/0.5368, allocations: 4.422 MB / 0.5343 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00034/0.5371, allocations: 330.4 kB / 0.5346 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002597/0.5398, allocations: 448.9 kB / 0.5351 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02622/0.566, allocations: 13.28 MB / 0.548 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002537/0.5663, allocations: 73.42 kB / 0.5481 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008845/0.5672, allocations: 202.9 kB / 0.5483 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0041/0.5713, allocations: 2.595 MB / 0.5508 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02547/0.5968, allocations: 11.54 MB / 0.5621 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08351/0.6803, allocations: 53.43 MB / 0.6143 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01539/0.6958, allocations: 5.66 MB / 0.6198 GB, free: 8.758 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005427/0.7013, allocations: 3.5 MB / 0.6232 GB, free: 5.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009775/0.7023, allocations: 0.6909 MB / 0.6239 GB, free: 4.465 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.08e-05/0.7024, allocations: 60.56 kB / 0.6239 GB, free: 4.398 MB / 462.1 MB Notification: Performance of pre-optimization done (n=245): time 6.632e-06/0.7024, allocations: 0 / 0.6239 GB, free: 4.398 MB / 462.1 MB Notification: Performance of matching and sorting (n=315): time 0.1203/0.8227, allocations: 36.55 MB / 0.6596 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001724/0.8229, allocations: 261.3 kB / 0.6599 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0119/0.8348, allocations: 5.221 MB / 0.665 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001004/0.8358, allocations: 72.83 kB / 0.6651 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003388/0.8392, allocations: 3.913 MB / 0.6689 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001852/0.8411, allocations: 1.177 MB / 0.67 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005058/0.8462, allocations: 1.602 MB / 0.6716 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.8463, allocations: 301.1 kB / 0.6719 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006733/0.8531, allocations: 3.632 MB / 0.6754 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009641/0.8627, allocations: 7.831 MB / 0.6831 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01717/0.8799, allocations: 12.28 MB / 0.6951 GB, free: 8.012 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001762/0.8802, allocations: 44 kB / 0.6951 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.3165/1.197, allocations: 13.76 MB / 0.7085 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001795/1.197, allocations: 67.88 kB / 0.7086 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002769/1.197, allocations: 145 kB / 0.7087 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008512/1.206, allocations: 2.768 MB / 0.7114 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007188/1.213, allocations: 1.788 MB / 0.7132 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02042/1.233, allocations: 17.81 MB / 0.7306 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007957/1.241, allocations: 474.9 kB / 0.731 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001943/1.243, allocations: 453.6 kB / 0.7315 GB, free: 170 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (951): * Single equations (assignments): 946 * 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%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006948/1.25, allocations: 2.776 MB / 0.7342 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001364/1.252, allocations: 486.4 kB / 0.7346 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/1.266, allocations: 8.046 MB / 0.7425 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/1.266, allocations: 32 kB / 0.7425 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.818e-05/1.266, allocations: 12 kB / 0.7425 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001297/1.267, allocations: 17.91 kB / 0.7426 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03357/1.3, allocations: 17.16 MB / 0.7593 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.486e-05/1.3, allocations: 7.938 kB / 0.7593 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002791/1.303, allocations: 0.4997 MB / 0.7598 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006319/1.309, allocations: 2.488 MB / 0.7622 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009353/1.31, allocations: 58.97 kB / 0.7623 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01744/1.328, allocations: 15.88 MB / 0.7778 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/1.328, allocations: 11.88 kB / 0.7778 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01974/1.348, allocations: 12.58 MB / 0.7901 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/1.349, allocations: 0.5425 MB / 0.7906 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002007/1.351, allocations: 60 kB / 0.7907 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004185/1.356, allocations: 223.7 kB / 0.7909 GB, free: 116.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001141/1.357, allocations: 212.3 kB / 0.7911 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006511/1.357, allocations: 87.98 kB / 0.7912 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00682/1.364, allocations: 3.301 MB / 0.7944 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.31e-07/1.364, allocations: 4 kB / 0.7944 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01049/1.375, allocations: 1.55 MB / 0.7959 GB, free: 111.4 MB / 0.5294 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 (253): * Single equations (assignments): 248 * 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.001329/1.376, allocations: 200 kB / 0.7961 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02076/1.397, allocations: 12.4 MB / 0.8082 GB, free: 98.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/1.397, allocations: 4 kB / 0.8082 GB, free: 98.81 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005951/1.403, allocations: 3.561 MB / 0.8117 GB, free: 95.23 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006535/1.41, allocations: 0.6718 MB / 0.8124 GB, free: 94.57 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0287/1.438, allocations: 15.37 MB / 0.8274 GB, free: 79.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00668/1.445, allocations: 4.304 MB / 0.8316 GB, free: 74.74 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002066/1.447, allocations: 397.1 kB / 0.832 GB, free: 74.36 MB / 0.5294 GB Notification: Performance of SimCode: time 1.273e-06/1.447, allocations: 0 / 0.832 GB, free: 74.36 MB / 0.5294 GB Notification: Performance of Templates: time 0.4319/1.879, allocations: 136 MB / 0.9648 GB, free: 128.8 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches