Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009806/0.0009808, allocations: 179.2 kB / 18.09 MB, free: 3.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.3 MB / 242.1 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007795/0.0007796, allocations: 93.09 kB / 293.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3153/0.3153, allocations: 44.14 MB / 388.5 MB, free: 38.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005248/0.0005256, allocations: 12 kB / 461.1 MB, free: 1.285 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3461, allocations: 61.88 MB / 0.5107 GB, free: 38.39 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1367/0.4829, allocations: 110.5 MB / 0.6187 GB, free: 484 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.4832, allocations: 83.94 kB / 0.6187 GB, free: 404 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4785/0.9618, allocations: 97.24 MB / 0.7137 GB, free: 97.57 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.9618, allocations: 0 / 0.7137 GB, free: 97.57 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002786/0.9621, allocations: 94.08 kB / 0.7138 GB, free: 97.56 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.01741/0.9795, allocations: 4.636 MB / 0.7183 GB, free: 95.54 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.9796, allocations: 9.219 kB / 0.7183 GB, free: 95.54 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01462/0.9942, allocations: 3.574 MB / 0.7218 GB, free: 95.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009547/1.004, allocations: 3.663 MB / 0.7254 GB, free: 94.43 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003616/1.004, allocations: 374.6 kB / 0.7258 GB, free: 94.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002818/1.007, allocations: 499.7 kB / 0.7262 GB, free: 94.16 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02896/1.036, allocations: 12.01 MB / 0.738 GB, free: 89.14 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000306/1.036, allocations: 39.59 kB / 0.738 GB, free: 89.12 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002292/1.039, allocations: 220.7 kB / 0.7382 GB, free: 88.99 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001812/1.04, allocations: 1.306 MB / 0.7395 GB, free: 88.75 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02288/1.063, allocations: 11.24 MB / 0.7505 GB, free: 85.26 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06327/1.127, allocations: 41.39 MB / 0.7909 GB, free: 53.54 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009287/1.136, allocations: 4.88 MB / 0.7957 GB, free: 48.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002886/1.139, allocations: 2.369 MB / 0.798 GB, free: 46.06 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01109/1.15, allocations: 6.793 MB / 0.8046 GB, free: 38.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/1.15, allocations: 52.56 kB / 0.8046 GB, free: 38.87 MB / 490.7 MB Notification: Performance of pre-optimization done (n=229): time 5.901e-06/1.15, allocations: 0 / 0.8046 GB, free: 38.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=250): time 0.04826/1.198, allocations: 18.3 MB / 0.8225 GB, free: 20.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/1.199, allocations: 81.39 kB / 0.8226 GB, free: 20.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008218/1.207, allocations: 3.121 MB / 0.8256 GB, free: 17.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005441/1.207, allocations: 61.7 kB / 0.8257 GB, free: 17.18 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002926/1.21, allocations: 3.232 MB / 0.8289 GB, free: 13.95 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001425/1.212, allocations: 0.94 MB / 0.8298 GB, free: 13.01 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000746/1.213, allocations: 119.4 kB / 0.8299 GB, free: 12.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007234/1.213, allocations: 0.5625 MB / 0.8304 GB, free: 12.33 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005777/1.219, allocations: 2.417 MB / 0.8328 GB, free: 9.906 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008398/1.228, allocations: 5.746 MB / 0.8384 GB, free: 2.523 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0172/1.245, allocations: 8.896 MB / 0.8471 GB, free: 8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001059/1.245, allocations: 32 kB / 0.8471 GB, free: 7.969 MB / 0.4948 GB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02227/1.267, allocations: 9.884 MB / 0.8568 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001652/1.267, allocations: 56 kB / 0.8568 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002254/1.268, allocations: 116 kB / 0.857 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008342/1.276, allocations: 2.321 MB / 0.8592 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004698/1.281, allocations: 1.322 MB / 0.8605 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01707/1.298, allocations: 10.65 MB / 0.8709 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004358/1.302, allocations: 326.1 kB / 0.8712 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/1.303, allocations: 352 kB / 0.8716 GB, free: 14.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 528 * Number of states: 0 () * Number of discrete variables: 32 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (720): * Single equations (assignments): 712 * Array equations: 6 * 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: 0 * Non-linear torn systems: 2 {4 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.005866/1.309, allocations: 2.398 MB / 0.8739 GB, free: 12.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007267/1.31, allocations: 304.1 kB / 0.8742 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008358/1.318, allocations: 4.557 MB / 0.8786 GB, free: 7.484 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.446e-05/1.319, allocations: 47.98 kB / 0.8787 GB, free: 7.438 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.622e-05/1.319, allocations: 4 kB / 0.8787 GB, free: 7.434 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.427e-05/1.319, allocations: 11.95 kB / 0.8787 GB, free: 7.422 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3711/1.69, allocations: 10.76 MB / 0.8892 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/1.69, allocations: 5.656 kB / 0.8892 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001629/1.691, allocations: 413.2 kB / 0.8896 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/1.693, allocations: 0.6911 MB / 0.8903 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002046/1.694, allocations: 56.53 kB / 0.8903 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002466/1.696, allocations: 2.411 MB / 0.8927 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.696, allocations: 14.66 kB / 0.8927 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009114/1.705, allocations: 7.024 MB / 0.8996 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009923/1.706, allocations: 355.9 kB / 0.8999 GB, free: 130 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000356/1.707, allocations: 53.38 kB / 0.9 GB, free: 130 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/1.708, allocations: 133.4 kB / 0.9001 GB, free: 130 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/1.708, allocations: 143.5 kB / 0.9002 GB, free: 130 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/1.708, allocations: 67.3 kB / 0.9003 GB, free: 130 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003075/1.711, allocations: 1.892 MB / 0.9021 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.7e-07/1.711, allocations: 0 / 0.9021 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006878/1.718, allocations: 1.126 MB / 0.9032 GB, free: 129.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * 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 (202): * Single equations (assignments): 193 * 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.0006451/1.719, allocations: 198.9 kB / 0.9034 GB, free: 129.8 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:80:3-82:159:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:74:3-76:159:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:77:3-79:159:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01046/1.729, allocations: 6.051 MB / 0.9093 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/1.729, allocations: 0 / 0.9093 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004488/1.734, allocations: 2.501 MB / 0.9118 GB, free: 129 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005535/1.739, allocations: 455 kB / 0.9122 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02973/1.769, allocations: 13.29 MB / 0.9252 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00817/1.777, allocations: 3.722 MB / 0.9288 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005718/1.783, allocations: 2.037 MB / 0.9308 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006953/1.784, allocations: 241.1 kB / 0.931 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of SimCode: time 2.134e-06/1.784, allocations: 0 / 0.931 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.0739/1.858, allocations: 39.04 MB / 0.9692 GB, free: 114.8 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit4/FreeMotionScalarInit4.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches