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.001257/0.001257, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.208/1.208, allocations: 221.4 MB / 236 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008917/0.0008918, allocations: 95.53 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1771/0.1771, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.805e-05/2.841e-05, allocations: 4.219 kB / 451.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 61.92 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3654/0.4776, allocations: 110.3 MB / 0.6094 GB, free: 10.94 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.4779, allocations: 83.55 kB / 0.6095 GB, free: 10.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.232/0.7099, allocations: 98.35 MB / 0.7056 GB, free: 7.824 MB / 0.5105 GB Notification: Performance of FrontEnd: time 5.18e-06/0.71, allocations: 4 kB / 0.7056 GB, free: 7.82 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001615/0.7101, allocations: 84 kB / 0.7056 GB, free: 7.738 MB / 0.5105 GB 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.01534/0.7255, allocations: 4.608 MB / 0.7101 GB, free: 3.062 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.7256, allocations: 16.03 kB / 0.7102 GB, free: 3.047 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2852/1.011, allocations: 3.598 MB / 0.7137 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01491/1.026, allocations: 4.729 MB / 0.7183 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005086/1.026, allocations: 372.4 kB / 0.7187 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003693/1.03, allocations: 497.4 kB / 0.7191 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02528/1.055, allocations: 11.98 MB / 0.7308 GB, free: 120 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001416/1.055, allocations: 32.61 kB / 0.7309 GB, free: 120 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006618/1.056, allocations: 224.6 kB / 0.7311 GB, free: 120 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001806/1.058, allocations: 1.303 MB / 0.7323 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01882/1.077, allocations: 11.2 MB / 0.7433 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04906/1.126, allocations: 41.44 MB / 0.7838 GB, free: 95.71 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00851/1.134, allocations: 4.851 MB / 0.7885 GB, free: 93.45 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00246/1.137, allocations: 2.358 MB / 0.7908 GB, free: 92.54 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008633/1.146, allocations: 6.834 MB / 0.7975 GB, free: 88.69 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/1.146, allocations: 54.69 kB / 0.7975 GB, free: 88.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=229): time 3.957e-06/1.146, allocations: 0 / 0.7975 GB, free: 88.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=250): time 0.03597/1.182, allocations: 15.7 MB / 0.8128 GB, free: 80.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/1.182, allocations: 69.41 kB / 0.8129 GB, free: 80.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/1.185, allocations: 2.767 MB / 0.8156 GB, free: 77.62 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003619/1.185, allocations: 65.14 kB / 0.8157 GB, free: 77.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001147/1.187, allocations: 3.228 MB / 0.8188 GB, free: 74.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007326/1.187, allocations: 0.9343 MB / 0.8197 GB, free: 73.85 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002241/1.187, allocations: 123.9 kB / 0.8199 GB, free: 73.73 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002238/1.188, allocations: 0.5616 MB / 0.8204 GB, free: 73.24 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002613/1.19, allocations: 2.372 MB / 0.8227 GB, free: 71.09 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003667/1.194, allocations: 5.678 MB / 0.8283 GB, free: 64.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004175/1.198, allocations: 3.715 MB / 0.8319 GB, free: 61.09 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.213e-05/1.198, allocations: 32 kB / 0.8319 GB, free: 61.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=805) (initialization): time 0.01721/1.216, allocations: 9.793 MB / 0.8415 GB, free: 52.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.474e-05/1.216, allocations: 56.94 kB / 0.8415 GB, free: 52.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-05/1.216, allocations: 116 kB / 0.8417 GB, free: 52.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00773/1.223, allocations: 2.324 MB / 0.8439 GB, free: 51.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004089/1.228, allocations: 1.326 MB / 0.8452 GB, free: 50.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01382/1.241, allocations: 10.6 MB / 0.8556 GB, free: 40.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003779/1.245, allocations: 326.2 kB / 0.8559 GB, free: 40.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006884/1.246, allocations: 351.7 kB / 0.8562 GB, free: 40.34 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 () * 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.000725/1.247, allocations: 0.5362 MB / 0.8567 GB, free: 39.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004043/1.247, allocations: 304 kB / 0.857 GB, free: 39.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007223/1.254, allocations: 4.529 MB / 0.8615 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.454e-05/1.254, allocations: 47.38 kB / 0.8615 GB, free: 35.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/1.254, allocations: 4 kB / 0.8615 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/1.254, allocations: 9.938 kB / 0.8615 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/1.269, allocations: 10.74 MB / 0.872 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/1.269, allocations: 4 kB / 0.872 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/1.271, allocations: 408 kB / 0.8724 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001716/1.272, allocations: 0.689 MB / 0.8731 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001576/1.273, allocations: 63.91 kB / 0.8731 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001946/1.275, allocations: 2.416 MB / 0.8755 GB, free: 21.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.275, allocations: 4 kB / 0.8755 GB, free: 21.64 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007882/1.283, allocations: 7.391 MB / 0.8827 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/1.284, allocations: 353.1 kB / 0.883 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000425/1.284, allocations: 47.95 kB / 0.8831 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/1.286, allocations: 139.7 kB / 0.8832 GB, free: 13.42 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000295/1.286, allocations: 141.7 kB / 0.8834 GB, free: 13.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001523/1.286, allocations: 71.97 kB / 0.8834 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002514/1.289, allocations: 1.865 MB / 0.8852 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.81e-07/1.289, allocations: 0 / 0.8852 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004567/1.293, allocations: 1.121 MB / 0.8863 GB, free: 10.23 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 () * 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.0004618/1.294, allocations: 196.6 kB / 0.8865 GB, free: 10.04 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 was selected as a continuous variable. [/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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.007585/1.301, allocations: 5.981 MB / 0.8924 GB, free: 4.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/1.301, allocations: 0 / 0.8924 GB, free: 4.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003384/1.305, allocations: 2.48 MB / 0.8948 GB, free: 1.539 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/1.307, allocations: 423.8 kB / 0.8952 GB, free: 1.145 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/1.321, allocations: 9.299 MB / 0.9043 GB, free: 7.805 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003858/1.325, allocations: 3.823 MB / 0.908 GB, free: 3.973 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00476/1.33, allocations: 2.037 MB / 0.91 GB, free: 1.941 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000748/1.331, allocations: 239.4 kB / 0.9102 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of SimCode: time 5.51e-07/1.331, allocations: 0 / 0.9102 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of Templates: time 0.3468/1.678, allocations: 38.9 MB / 0.9482 GB, free: 118.1 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/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