Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002144/0.002144, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.934/1.934, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001101/0.001101, allocations: 98.12 kB / 270.9 MB, free: 8.371 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.4977/0.4977, allocations: 43.55 MB / 362.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006765/0.0006764, allocations: 15.98 kB / 431.4 MB, free: 5.949 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1242, allocations: 58.84 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4788/0.603, allocations: 104.4 MB / 0.5807 GB, free: 14.14 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.6034, allocations: 79.97 kB / 0.5808 GB, free: 14.06 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3776/0.981, allocations: 91.89 MB / 0.6705 GB, free: 1.555 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.9811, allocations: 0 / 0.6705 GB, free: 1.555 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002118/0.9813, allocations: 80 kB / 0.6706 GB, free: 1.477 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: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.353/1.334, allocations: 4.45 MB / 0.6749 GB, free: 92.63 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/1.334, allocations: 11.38 kB / 0.6749 GB, free: 92.63 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02851/1.363, allocations: 3.576 MB / 0.6784 GB, free: 92.33 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01954/1.382, allocations: 4.744 MB / 0.6831 GB, free: 92.07 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006088/1.383, allocations: 338 kB / 0.6834 GB, free: 92.06 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003343/1.387, allocations: 442.7 kB / 0.6838 GB, free: 92.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03857/1.425, allocations: 11.5 MB / 0.695 GB, free: 90.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00034/1.426, allocations: 35.25 kB / 0.6951 GB, free: 90.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002955/1.428, allocations: 200.1 kB / 0.6953 GB, free: 90.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00286/1.431, allocations: 1.25 MB / 0.6965 GB, free: 90.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03324/1.465, allocations: 11.11 MB / 0.7073 GB, free: 90.64 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0808/1.546, allocations: 38.13 MB / 0.7446 GB, free: 69.36 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/1.559, allocations: 4.681 MB / 0.7491 GB, free: 67.13 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001557/1.561, allocations: 1.323 MB / 0.7504 GB, free: 65.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/1.561, allocations: 51.94 kB / 0.7505 GB, free: 65.89 MB / 490.7 MB Notification: Performance of pre-optimization done (n=244): time 6.512e-06/1.561, allocations: 3.562 kB / 0.7505 GB, free: 65.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=256): time 0.06604/1.627, allocations: 14.35 MB / 0.7645 GB, free: 61.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/1.627, allocations: 74.75 kB / 0.7646 GB, free: 61.25 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005586/1.633, allocations: 2.53 MB / 0.767 GB, free: 60.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005478/1.633, allocations: 60.83 kB / 0.7671 GB, free: 60.23 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002171/1.636, allocations: 2.962 MB / 0.77 GB, free: 57.92 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001374/1.637, allocations: 0.9434 MB / 0.7709 GB, free: 57.23 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007787/1.638, allocations: 113.8 kB / 0.771 GB, free: 57.14 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004973/1.638, allocations: 0.5562 MB / 0.7716 GB, free: 56.72 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005696/1.644, allocations: 2.278 MB / 0.7738 GB, free: 56 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007801/1.652, allocations: 5.433 MB / 0.7791 GB, free: 51.05 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00805/1.66, allocations: 3.525 MB / 0.7825 GB, free: 49.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.66, allocations: 32.03 kB / 0.7826 GB, free: 49.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.02473/1.685, allocations: 8.346 MB / 0.7907 GB, free: 44.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.937e-05/1.685, allocations: 52 kB / 0.7908 GB, free: 43.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001653/1.685, allocations: 108 kB / 0.7909 GB, free: 43.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006356/1.692, allocations: 1.039 MB / 0.7919 GB, free: 43.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008044/1.7, allocations: 1.316 MB / 0.7932 GB, free: 42.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003925/1.704, allocations: 2.492 MB / 0.7956 GB, free: 39.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005921/1.71, allocations: 318.9 kB / 0.7959 GB, free: 39.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001405/1.711, allocations: 334.6 kB / 0.7962 GB, free: 39.13 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 503 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (713): * Single equations (assignments): 704 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00627/1.717, allocations: 2.282 MB / 0.7984 GB, free: 37.15 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001429/1.719, allocations: 288.2 kB / 0.7987 GB, free: 36.87 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02558/1.744, allocations: 4.9 MB / 0.8035 GB, free: 32.83 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001525/1.745, allocations: 50.45 kB / 0.8036 GB, free: 32.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.21e-05/1.745, allocations: 0 / 0.8036 GB, free: 32.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.266e-05/1.745, allocations: 10.08 kB / 0.8036 GB, free: 32.79 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04501/1.79, allocations: 11.51 MB / 0.8148 GB, free: 23.08 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.985e-05/1.79, allocations: 11.94 kB / 0.8148 GB, free: 23.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003609/1.794, allocations: 408.4 kB / 0.8152 GB, free: 22.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005279/1.799, allocations: 0.6193 MB / 0.8158 GB, free: 22.34 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005666/1.8, allocations: 59.14 kB / 0.8159 GB, free: 22.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003286/1.803, allocations: 2.105 MB / 0.8179 GB, free: 20.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/1.803, allocations: 15.94 kB / 0.8179 GB, free: 20.25 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01869/1.822, allocations: 7.728 MB / 0.8255 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008711/1.823, allocations: 331.7 kB / 0.8258 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.824, allocations: 51.2 kB / 0.8258 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002785/1.826, allocations: 130.7 kB / 0.826 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007317/1.827, allocations: 159 kB / 0.8261 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002651/1.827, allocations: 75.8 kB / 0.8262 GB, free: 12.23 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00402/1.831, allocations: 1.724 MB / 0.8279 GB, free: 10.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.832, allocations: 4 kB / 0.8279 GB, free: 10.69 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006486/1.838, allocations: 1.002 MB / 0.8289 GB, free: 9.699 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * 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 (207): * Single equations (assignments): 198 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009692/1.839, allocations: 209 kB / 0.8291 GB, free: 9.496 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01889/1.858, allocations: 5.963 MB / 0.8349 GB, free: 3.496 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-05/1.858, allocations: 4 kB / 0.8349 GB, free: 3.492 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006749/1.865, allocations: 2.379 MB / 0.8372 GB, free: 1.059 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003258/1.868, allocations: 396.3 kB / 0.8376 GB, free: 0.6914 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03349/1.902, allocations: 13.47 MB / 0.8507 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009376/1.911, allocations: 3.623 MB / 0.8543 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001921/1.913, allocations: 275.4 kB / 0.8545 GB, free: 15.24 MB / 0.5105 GB Notification: Performance of SimCode: time 1.392e-06/1.913, allocations: 0 / 0.8545 GB, free: 15.24 MB / 0.5105 GB Notification: Performance of Templates: time 0.5428/2.456, allocations: 114.3 MB / 0.9662 GB, free: 82.18 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit2/FreeMotionScalarInit2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches