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.001031/0.001031, allocations: 177 kB / 17.06 MB, free: 5.094 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.286/1.286, allocations: 223.2 MB / 241 MB, free: 11.88 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.0008808/0.0008807, allocations: 95.98 kB / 292.2 MB, free: 10.92 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.291/0.291, allocations: 44.22 MB / 387.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.0003229, allocations: 8 kB / 459.9 MB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3077, allocations: 61.9 MB / 0.5096 GB, free: 37.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/0.4421, allocations: 110.4 MB / 0.6174 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.4424, allocations: 79.97 kB / 0.6175 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4856/0.9281, allocations: 98.25 MB / 0.7134 GB, free: 96.7 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.9281, allocations: 1.031 kB / 0.7134 GB, free: 96.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003101/0.9284, allocations: 89.2 kB / 0.7135 GB, free: 96.7 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.01953/0.948, allocations: 4.761 MB / 0.7181 GB, free: 94.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.948, allocations: 9.875 kB / 0.7182 GB, free: 94.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01507/0.9631, allocations: 3.603 MB / 0.7217 GB, free: 94.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01545/0.9786, allocations: 4.751 MB / 0.7263 GB, free: 93.48 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003417/0.979, allocations: 380.2 kB / 0.7267 GB, free: 93.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002874/0.9819, allocations: 494.6 kB / 0.7271 GB, free: 93.21 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03037/1.012, allocations: 12.08 MB / 0.7389 GB, free: 88.16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002667/1.013, allocations: 34.09 kB / 0.739 GB, free: 88.14 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002529/1.015, allocations: 225.6 kB / 0.7392 GB, free: 88.01 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001724/1.017, allocations: 1.287 MB / 0.7405 GB, free: 87.79 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02329/1.04, allocations: 11.36 MB / 0.7515 GB, free: 84.27 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06534/1.106, allocations: 41.46 MB / 0.792 GB, free: 51.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009089/1.115, allocations: 4.861 MB / 0.7968 GB, free: 46.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01336/1.128, allocations: 6.835 MB / 0.8035 GB, free: 39.06 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/1.128, allocations: 52.56 kB / 0.8035 GB, free: 39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=229): time 6.382e-06/1.128, allocations: 4 kB / 0.8035 GB, free: 38.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=250): time 0.04504/1.173, allocations: 18.84 MB / 0.8219 GB, free: 19.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/1.173, allocations: 77.34 kB / 0.822 GB, free: 19.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004929/1.178, allocations: 2.794 MB / 0.8247 GB, free: 17.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004716/1.179, allocations: 65.64 kB / 0.8248 GB, free: 17 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001714/1.181, allocations: 3.23 MB / 0.8279 GB, free: 13.76 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009401/1.182, allocations: 0.9341 MB / 0.8288 GB, free: 12.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000561/1.182, allocations: 120 kB / 0.829 GB, free: 12.72 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004888/1.183, allocations: 0.5625 MB / 0.8295 GB, free: 12.15 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003269/1.186, allocations: 2.417 MB / 0.8319 GB, free: 9.727 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004576/1.19, allocations: 5.719 MB / 0.8375 GB, free: 2.371 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005013/1.195, allocations: 3.724 MB / 0.8411 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001006/1.196, allocations: 35.95 kB / 0.8411 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02138/1.217, allocations: 9.876 MB / 0.8508 GB, free: 4.727 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000127/1.217, allocations: 59.98 kB / 0.8508 GB, free: 4.668 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001719/1.217, allocations: 116 kB / 0.8509 GB, free: 4.555 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008702/1.226, allocations: 2.328 MB / 0.8532 GB, free: 2.227 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004874/1.231, allocations: 1.333 MB / 0.8545 GB, free: 0.8906 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0187/1.25, allocations: 11.08 MB / 0.8653 GB, free: 5.672 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0048/1.255, allocations: 323.8 kB / 0.8656 GB, free: 5.355 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/1.256, allocations: 350.6 kB / 0.866 GB, free: 5.016 MB / 0.5105 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.00612/1.262, allocations: 2.393 MB / 0.8683 GB, free: 2.609 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000805/1.263, allocations: 304 kB / 0.8686 GB, free: 2.309 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2891/1.552, allocations: 4.552 MB / 0.873 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.885e-05/1.552, allocations: 49.48 kB / 0.8731 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/1.552, allocations: 0 / 0.8731 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-05/1.552, allocations: 10.36 kB / 0.8731 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01967/1.572, allocations: 10.76 MB / 0.8836 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/1.572, allocations: 6.562 kB / 0.8836 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00168/1.574, allocations: 416.3 kB / 0.884 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/1.575, allocations: 0.6957 MB / 0.8847 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001781/1.576, allocations: 56.44 kB / 0.8847 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/1.578, allocations: 2.444 MB / 0.8871 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/1.578, allocations: 2.969 kB / 0.8871 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008693/1.587, allocations: 7.437 MB / 0.8944 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/1.588, allocations: 348.2 kB / 0.8947 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003834/1.588, allocations: 45.64 kB / 0.8948 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/1.589, allocations: 136.6 kB / 0.8949 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/1.59, allocations: 143.1 kB / 0.895 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001749/1.59, allocations: 74.77 kB / 0.8951 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003124/1.593, allocations: 1.89 MB / 0.897 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/1.593, allocations: 0 / 0.897 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005848/1.599, allocations: 1.12 MB / 0.8981 GB, free: 111.8 MB / 0.5105 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.0005679/1.599, allocations: 198.3 kB / 0.8982 GB, free: 111.7 MB / 0.5105 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.01035/1.61, allocations: 6.065 MB / 0.9042 GB, free: 110 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.61, allocations: 0 / 0.9042 GB, free: 110 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004883/1.615, allocations: 2.503 MB / 0.9066 GB, free: 109 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/1.617, allocations: 427.7 kB / 0.907 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/1.637, allocations: 13.25 MB / 0.92 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004486/1.642, allocations: 3.825 MB / 0.9237 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004512/1.646, allocations: 2.036 MB / 0.9257 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006982/1.647, allocations: 230.1 kB / 0.9259 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.453e-06/1.647, allocations: 4 kB / 0.9259 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.06763/1.715, allocations: 38.91 MB / 0.9639 GB, free: 88.96 MB / 0.5105 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/jenkins/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