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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 185.4 kB / 13.19 MB, free: 2.121 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.268/1.268, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0007824/0.0007824, allocations: 91.52 kB / 267.1 MB, free: 9.277 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.312/0.312, allocations: 43.46 MB / 358.6 MB, free: 52.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.497e-05/2.499e-05, allocations: 4 kB / 425.3 MB, free: 8.879 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 58.85 MB / 484.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3333/0.4347, allocations: 109 MB / 0.5792 GB, free: 12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.435, allocations: 75.95 kB / 0.5793 GB, free: 11.93 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5221/0.957, allocations: 119.1 MB / 0.6956 GB, free: 85.37 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.9571, allocations: 0 / 0.6956 GB, free: 85.37 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004502/0.9576, allocations: 116.8 kB / 0.6957 GB, free: 85.37 MB / 490.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.0184/0.976, allocations: 5.951 MB / 0.7015 GB, free: 83.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.976, allocations: 10.73 kB / 0.7015 GB, free: 83.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02514/1.001, allocations: 7.005 MB / 0.7084 GB, free: 82.67 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01825/1.019, allocations: 7.813 MB / 0.716 GB, free: 81.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005236/1.02, allocations: 437.5 kB / 0.7164 GB, free: 81.81 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002789/1.023, allocations: 0.5874 MB / 0.717 GB, free: 81.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02603/1.049, allocations: 13.84 MB / 0.7305 GB, free: 77.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002286/1.049, allocations: 85.61 kB / 0.7306 GB, free: 77.51 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008114/1.05, allocations: 276.5 kB / 0.7309 GB, free: 77.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00129/1.051, allocations: 1.319 MB / 0.7321 GB, free: 77.12 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01814/1.069, allocations: 11.53 MB / 0.7434 GB, free: 73.44 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05118/1.121, allocations: 62.19 MB / 0.8041 GB, free: 27.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/1.132, allocations: 5.714 MB / 0.8097 GB, free: 25.37 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002882/1.135, allocations: 3.285 MB / 0.8129 GB, free: 22.34 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005046/1.135, allocations: 0.6818 MB / 0.8136 GB, free: 21.61 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/1.135, allocations: 67.86 kB / 0.8137 GB, free: 21.54 MB / 490.7 MB Notification: Performance of pre-optimization done (n=254): time 4.989e-06/1.135, allocations: 0 / 0.8137 GB, free: 21.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=320): time 0.06888/1.204, allocations: 29.19 MB / 0.8422 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/1.205, allocations: 261.4 kB / 0.8424 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00721/1.212, allocations: 4.646 MB / 0.847 GB, free: 6.609 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005235/1.212, allocations: 73.7 kB / 0.847 GB, free: 6.531 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003022/1.215, allocations: 4.06 MB / 0.851 GB, free: 2.473 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001484/1.217, allocations: 1.193 MB / 0.8522 GB, free: 1.289 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006827/1.218, allocations: 156 kB / 0.8523 GB, free: 1.137 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005307/1.218, allocations: 0.6325 MB / 0.8529 GB, free: 0.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2671/1.485, allocations: 3.249 MB / 0.8561 GB, free: 95.17 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009603/1.495, allocations: 7.506 MB / 0.8634 GB, free: 89.76 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008393/1.503, allocations: 4.919 MB / 0.8682 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002616/1.504, allocations: 42.16 kB / 0.8683 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02518/1.529, allocations: 12.49 MB / 0.8805 GB, free: 89.08 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004239/1.529, allocations: 70.19 kB / 0.8805 GB, free: 89.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004999/1.53, allocations: 148.7 kB / 0.8807 GB, free: 89.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007768/1.538, allocations: 2.141 MB / 0.8828 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01018/1.548, allocations: 1.762 MB / 0.8845 GB, free: 88.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02914/1.577, allocations: 14.32 MB / 0.8985 GB, free: 83.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009272/1.586, allocations: 457.5 kB / 0.8989 GB, free: 83.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001805/1.588, allocations: 458.1 kB / 0.8993 GB, free: 83.16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (931): * Single equations (assignments): 926 * 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.001377/1.589, allocations: 0.6762 MB / 0.9 GB, free: 82.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009596/1.59, allocations: 0.4951 MB / 0.9005 GB, free: 82.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/1.603, allocations: 7.018 MB / 0.9073 GB, free: 80.07 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.105e-05/1.603, allocations: 34.22 kB / 0.9074 GB, free: 80.07 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.932e-05/1.604, allocations: 11.72 kB / 0.9074 GB, free: 80.07 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.783e-05/1.604, allocations: 14.44 kB / 0.9074 GB, free: 80.07 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02566/1.629, allocations: 16.01 MB / 0.923 GB, free: 74.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.421e-05/1.629, allocations: 3.844 kB / 0.923 GB, free: 74.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002325/1.632, allocations: 0.5061 MB / 0.9235 GB, free: 73.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00413/1.636, allocations: 1.875 MB / 0.9254 GB, free: 73.55 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005862/1.636, allocations: 71.39 kB / 0.9254 GB, free: 73.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/1.651, allocations: 12.81 MB / 0.9379 GB, free: 67.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.383e-06/1.651, allocations: 10.55 kB / 0.9379 GB, free: 67.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01461/1.666, allocations: 12.07 MB / 0.9497 GB, free: 61.37 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003011/1.669, allocations: 1.059 MB / 0.9508 GB, free: 60.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001268/1.67, allocations: 72.25 kB / 0.9508 GB, free: 60.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002891/1.673, allocations: 215.9 kB / 0.951 GB, free: 60.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005377/1.673, allocations: 202.3 kB / 0.9512 GB, free: 60.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002379/1.674, allocations: 93.94 kB / 0.9513 GB, free: 60.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006912/1.681, allocations: 3.282 MB / 0.9545 GB, free: 59.49 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.11e-07/1.681, allocations: 0 / 0.9545 GB, free: 59.49 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008313/1.689, allocations: 1.492 MB / 0.956 GB, free: 59.32 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00105/1.69, allocations: 212.8 kB / 0.9562 GB, free: 59.16 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01216/1.702, allocations: 8.185 MB / 0.9642 GB, free: 54.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/1.702, allocations: 4 kB / 0.9642 GB, free: 54.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00624/1.708, allocations: 3.877 MB / 0.968 GB, free: 50.87 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004036/1.712, allocations: 0.6318 MB / 0.9686 GB, free: 50.34 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02524/1.738, allocations: 12.24 MB / 0.9805 GB, free: 39.36 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007946/1.746, allocations: 4.538 MB / 0.985 GB, free: 35.98 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006937/1.753, allocations: 2.493 MB / 0.9874 GB, free: 34.37 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001538/1.754, allocations: 355.4 kB / 0.9878 GB, free: 34.05 MB / 0.4948 GB Notification: Performance of SimCode: time 1.312e-06/1.754, allocations: 0 / 0.9878 GB, free: 34.05 MB / 0.4948 GB Notification: Performance of Templates: time 0.3783/2.133, allocations: 60.81 MB / 1.047 GB, free: 114.3 MB / 0.5261 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