Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009398/0.0009399, allocations: 179.5 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.296/1.296, allocations: 221.3 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.0009208/0.0009211, allocations: 95.72 kB / 287 MB, free: 256 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.1726/0.1726, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.642e-05, allocations: 7.984 kB / 451.8 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 61.91 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3367/0.4398, allocations: 105.4 MB / 0.6046 GB, free: 15.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.44, allocations: 75.95 kB / 0.6047 GB, free: 15.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2093/0.6494, allocations: 90.72 MB / 0.6932 GB, free: 4.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.182e-06/0.6494, allocations: 0 / 0.6932 GB, free: 4.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000119/0.6496, allocations: 83.98 kB / 0.6933 GB, free: 4.418 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.01006/0.6596, allocations: 4.219 MB / 0.6974 GB, free: 136 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.6597, allocations: 8.031 kB / 0.6975 GB, free: 128 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01435/0.674, allocations: 3.562 MB / 0.7009 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/0.6855, allocations: 4.514 MB / 0.7053 GB, free: 7.98 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002935/0.6859, allocations: 332.5 kB / 0.7057 GB, free: 7.652 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001722/0.6876, allocations: 427.8 kB / 0.7061 GB, free: 7.234 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2402/0.9278, allocations: 11.12 MB / 0.7169 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001717/0.928, allocations: 25.86 kB / 0.7169 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00102/0.929, allocations: 196.6 kB / 0.7171 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001651/0.9307, allocations: 1.217 MB / 0.7183 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/0.9507, allocations: 10.66 MB / 0.7287 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04262/0.9934, allocations: 37.18 MB / 0.765 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006593/1, allocations: 4.549 MB / 0.7695 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00208/1.002, allocations: 2.181 MB / 0.7716 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007912/1.003, allocations: 1.32 MB / 0.7729 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/1.003, allocations: 52.12 kB / 0.773 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=235): time 5.34e-06/1.003, allocations: 0 / 0.773 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=247): time 0.02749/1.03, allocations: 11.06 MB / 0.7838 GB, free: 99.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/1.031, allocations: 75.09 kB / 0.7838 GB, free: 99.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003104/1.034, allocations: 2.445 MB / 0.7862 GB, free: 98.61 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003578/1.034, allocations: 53.52 kB / 0.7863 GB, free: 98.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001104/1.035, allocations: 2.891 MB / 0.7891 GB, free: 96.39 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007756/1.036, allocations: 0.9081 MB / 0.79 GB, free: 95.72 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/1.036, allocations: 112.3 kB / 0.7901 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002468/1.036, allocations: 0.5445 MB / 0.7906 GB, free: 95.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/1.039, allocations: 2.177 MB / 0.7927 GB, free: 94.54 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003604/1.043, allocations: 5.249 MB / 0.7979 GB, free: 89.72 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003421/1.046, allocations: 3.424 MB / 0.8012 GB, free: 88.67 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-05/1.046, allocations: 33.19 kB / 0.8012 GB, free: 88.67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=744) (initialization): time 0.01143/1.058, allocations: 8.133 MB / 0.8092 GB, free: 84.58 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.052e-05/1.058, allocations: 53.41 kB / 0.8092 GB, free: 84.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.73e-05/1.058, allocations: 111.9 kB / 0.8094 GB, free: 84.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003339/1.061, allocations: 1.025 MB / 0.8104 GB, free: 83.74 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004103/1.065, allocations: 1.273 MB / 0.8116 GB, free: 82.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/1.068, allocations: 2.453 MB / 0.814 GB, free: 80.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003954/1.072, allocations: 308 kB / 0.8143 GB, free: 80.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006837/1.072, allocations: 332.5 kB / 0.8146 GB, free: 79.75 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * Number of states: 0 () * Number of discrete variables: 26 (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 (691): * Single equations (assignments): 682 * 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.000839/1.073, allocations: 0.5066 MB / 0.8151 GB, free: 79.24 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003905/1.074, allocations: 276.3 kB / 0.8154 GB, free: 78.97 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007501/1.081, allocations: 4.749 MB / 0.82 GB, free: 75.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.915e-05/1.081, allocations: 48.98 kB / 0.82 GB, free: 75.06 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/1.081, allocations: 3.844 kB / 0.82 GB, free: 75.06 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.632e-05/1.081, allocations: 10.78 kB / 0.8201 GB, free: 75.06 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/1.098, allocations: 11.22 MB / 0.831 GB, free: 65.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/1.098, allocations: 8 kB / 0.831 GB, free: 65.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/1.1, allocations: 398.7 kB / 0.8314 GB, free: 65.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002594/1.103, allocations: 0.611 MB / 0.832 GB, free: 64.87 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/1.103, allocations: 52.95 kB / 0.8321 GB, free: 64.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/1.104, allocations: 2.056 MB / 0.8341 GB, free: 62.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/1.104, allocations: 18.09 kB / 0.8341 GB, free: 62.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008366/1.113, allocations: 7.508 MB / 0.8414 GB, free: 55.77 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005796/1.113, allocations: 328.9 kB / 0.8417 GB, free: 55.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/1.114, allocations: 44.11 kB / 0.8418 GB, free: 55.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/1.115, allocations: 130 kB / 0.8419 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/1.115, allocations: 154.6 kB / 0.842 GB, free: 55.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/1.115, allocations: 68.69 kB / 0.8421 GB, free: 55.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001922/1.117, allocations: 1.65 MB / 0.8437 GB, free: 53.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/1.117, allocations: 0 / 0.8437 GB, free: 53.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003242/1.12, allocations: 0.98 MB / 0.8447 GB, free: 52.71 MB / 0.5105 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 188 * 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.0003422/1.121, allocations: 190.7 kB / 0.8449 GB, free: 52.52 MB / 0.5105 GB [/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 $DER.freeMotionScalarInit.angle_2 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 $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.006953/1.128, allocations: 5.762 MB / 0.8505 GB, free: 47.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/1.128, allocations: 0.5 kB / 0.8505 GB, free: 47.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002991/1.131, allocations: 2.305 MB / 0.8527 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/1.133, allocations: 403.2 kB / 0.8531 GB, free: 44.87 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/1.146, allocations: 9.008 MB / 0.8619 GB, free: 36.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002785/1.149, allocations: 3.527 MB / 0.8654 GB, free: 32.96 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004198/1.153, allocations: 2.035 MB / 0.8673 GB, free: 30.94 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006533/1.153, allocations: 219.4 kB / 0.8676 GB, free: 30.73 MB / 0.5105 GB Notification: Performance of SimCode: time 8.52e-07/1.154, allocations: 0 / 0.8676 GB, free: 30.73 MB / 0.5105 GB Notification: Performance of Templates: time 0.04525/1.199, allocations: 30.15 MB / 0.897 GB, free: 1.156 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit2/FreeMotionScalarInit2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches