Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00261/0.00261, allocations: 180.2 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.042/2.042, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001107/0.001107, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2725/0.2725, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.911e-05/2.915e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1149, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4994/0.6143, allocations: 109 MB / 0.5793 GB, free: 10.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.6146, allocations: 84.42 kB / 0.5794 GB, free: 10.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4196/1.034, allocations: 99.46 MB / 0.6765 GB, free: 15.06 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.034, allocations: 0 / 0.6765 GB, free: 15.06 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002531/1.035, allocations: 92 kB / 0.6766 GB, free: 14.97 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.02586/1.06, allocations: 4.707 MB / 0.6812 GB, free: 10.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/1.061, allocations: 12.03 kB / 0.6812 GB, free: 10.19 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0287/1.089, allocations: 3.635 MB / 0.6847 GB, free: 6.539 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0215/1.111, allocations: 4.929 MB / 0.6895 GB, free: 1.555 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005881/1.111, allocations: 390 kB / 0.6899 GB, free: 1.172 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003401/1.115, allocations: 499.8 kB / 0.6904 GB, free: 0.6836 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04236/1.157, allocations: 12.27 MB / 0.7024 GB, free: 3.879 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003436/1.158, allocations: 39.66 kB / 0.7024 GB, free: 3.84 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002943/1.161, allocations: 223.9 kB / 0.7026 GB, free: 3.621 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003398/1.164, allocations: 1.342 MB / 0.7039 GB, free: 2.277 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3722/1.536, allocations: 11.47 MB / 0.7151 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08895/1.625, allocations: 42.4 MB / 0.7565 GB, free: 98.15 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01705/1.642, allocations: 4.966 MB / 0.7614 GB, free: 95.87 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005235/1.648, allocations: 2.383 MB / 0.7637 GB, free: 94.94 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01675/1.665, allocations: 6.959 MB / 0.7705 GB, free: 91.09 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.53e-05/1.665, allocations: 51.53 kB / 0.7706 GB, free: 91.03 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=238): time 7.083e-06/1.665, allocations: 0 / 0.7706 GB, free: 91.03 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259): time 0.08378/1.749, allocations: 16.3 MB / 0.7865 GB, free: 86.38 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/1.749, allocations: 77.28 kB / 0.7866 GB, free: 86.31 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006482/1.755, allocations: 2.838 MB / 0.7893 GB, free: 85.29 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005582/1.756, allocations: 57.95 kB / 0.7894 GB, free: 85.23 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002564/1.758, allocations: 3.3 MB / 0.7926 GB, free: 82.66 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001542/1.76, allocations: 0.9649 MB / 0.7935 GB, free: 81.95 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009265/1.761, allocations: 121.8 kB / 0.7937 GB, free: 81.86 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006179/1.762, allocations: 0.5785 MB / 0.7942 GB, free: 81.43 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006205/1.768, allocations: 2.432 MB / 0.7966 GB, free: 80.64 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008797/1.777, allocations: 5.809 MB / 0.8023 GB, free: 75.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008956/1.786, allocations: 3.797 MB / 0.806 GB, free: 73.59 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001704/1.786, allocations: 32 kB / 0.806 GB, free: 73.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=827) (initialization): time 0.03365/1.82, allocations: 9.916 MB / 0.8157 GB, free: 65.28 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/1.82, allocations: 56 kB / 0.8158 GB, free: 65.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001638/1.82, allocations: 116 kB / 0.8159 GB, free: 65.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01596/1.836, allocations: 2.333 MB / 0.8181 GB, free: 63.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008491/1.844, allocations: 1.367 MB / 0.8195 GB, free: 62.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02726/1.872, allocations: 10.64 MB / 0.8299 GB, free: 53.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006849/1.879, allocations: 328.3 kB / 0.8302 GB, free: 53.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001456/1.88, allocations: 359.4 kB / 0.8305 GB, free: 52.67 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 541 * Number of states: 0 () * Number of discrete variables: 30 (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.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 (742): * Single equations (assignments): 734 * 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.002106/1.882, allocations: 0.5624 MB / 0.8311 GB, free: 52.11 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007805/1.883, allocations: 311.9 kB / 0.8314 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01291/1.896, allocations: 4.626 MB / 0.8359 GB, free: 47.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000106/1.896, allocations: 51.75 kB / 0.8359 GB, free: 47.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/1.896, allocations: 0 / 0.8359 GB, free: 47.86 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.156e-05/1.896, allocations: 10.59 kB / 0.8359 GB, free: 47.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03177/1.928, allocations: 10.98 MB / 0.8467 GB, free: 38.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.904e-05/1.928, allocations: 4 kB / 0.8467 GB, free: 38.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003954/1.932, allocations: 423.1 kB / 0.8471 GB, free: 38.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003568/1.936, allocations: 0.7018 MB / 0.8478 GB, free: 37.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006252/1.936, allocations: 59.2 kB / 0.8478 GB, free: 37.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003778/1.94, allocations: 2.413 MB / 0.8502 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.94, allocations: 4 kB / 0.8502 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/1.957, allocations: 7.538 MB / 0.8575 GB, free: 28.63 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/1.958, allocations: 363 kB / 0.8579 GB, free: 28.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001065/1.959, allocations: 48 kB / 0.8579 GB, free: 28.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004719/1.964, allocations: 144.4 kB / 0.8581 GB, free: 28.12 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001063/1.965, allocations: 138 kB / 0.8582 GB, free: 28.04 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005167/1.965, allocations: 78.11 kB / 0.8583 GB, free: 27.97 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006813/1.972, allocations: 1.92 MB / 0.8601 GB, free: 26.16 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.492e-06/1.972, allocations: 0 / 0.8601 GB, free: 26.16 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01079/1.983, allocations: 1.144 MB / 0.8613 GB, free: 25.02 MB / 0.4948 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 (212): * Single equations (assignments): 203 * 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.001206/1.984, allocations: 205.5 kB / 0.8615 GB, free: 24.82 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161: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 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01961/2.004, allocations: 6.117 MB / 0.8674 GB, free: 18.71 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/2.004, allocations: 0 / 0.8674 GB, free: 18.71 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009817/2.014, allocations: 2.525 MB / 0.8699 GB, free: 16.14 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004594/2.019, allocations: 425.4 kB / 0.8703 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03582/2.054, allocations: 10.1 MB / 0.8802 GB, free: 5.602 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01108/2.066, allocations: 3.907 MB / 0.884 GB, free: 1.688 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002513/2.068, allocations: 291.4 kB / 0.8843 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of SimCode: time 1.503e-06/2.068, allocations: 4 kB / 0.8843 GB, free: 1.398 MB / 0.4948 GB Notification: Performance of Templates: time 0.5625/2.631, allocations: 114.9 MB / 0.9965 GB, free: 83.49 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit4/FreeMotionScalarInit4.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches