Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002167/0.002171, allocations: 181.1 kB / 13.66 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.004/2.004, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001087/0.001087, allocations: 98.62 kB / 267.5 MB, free: 14.04 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.2849/0.2849, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.33e-05/4.348e-05, allocations: 7.984 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 58.85 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.505/0.6213, allocations: 104.3 MB / 0.5747 GB, free: 15.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.6216, allocations: 81.36 kB / 0.5747 GB, free: 15.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.379/1.001, allocations: 91.95 MB / 0.6645 GB, free: 11.33 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.001, allocations: 0 / 0.6645 GB, free: 11.33 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002282/1.001, allocations: 80 kB / 0.6646 GB, free: 11.25 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.0245/1.025, allocations: 4.305 MB / 0.6688 GB, free: 6.879 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/1.026, allocations: 8.031 kB / 0.6688 GB, free: 6.871 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02874/1.054, allocations: 3.589 MB / 0.6723 GB, free: 3.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01967/1.074, allocations: 4.713 MB / 0.6769 GB, free: 14.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004442/1.075, allocations: 332.8 kB / 0.6772 GB, free: 14.17 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002787/1.077, allocations: 439.9 kB / 0.6777 GB, free: 13.74 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03544/1.113, allocations: 11.41 MB / 0.6888 GB, free: 1.844 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002105/1.113, allocations: 39.61 kB / 0.6889 GB, free: 1.805 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001497/1.115, allocations: 195.9 kB / 0.689 GB, free: 1.613 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002811/1.117, allocations: 1.259 MB / 0.6903 GB, free: 360 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03424/1.152, allocations: 10.95 MB / 0.701 GB, free: 5.387 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4093/1.561, allocations: 38.13 MB / 0.7382 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01347/1.575, allocations: 4.653 MB / 0.7427 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004749/1.579, allocations: 2.223 MB / 0.7449 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001653/1.581, allocations: 1.323 MB / 0.7462 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/1.581, allocations: 50.34 kB / 0.7462 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=244): time 7.173e-06/1.581, allocations: 3.656 kB / 0.7463 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=256): time 0.05818/1.639, allocations: 11.28 MB / 0.7573 GB, free: 101 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/1.639, allocations: 78.88 kB / 0.7573 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004632/1.644, allocations: 2.508 MB / 0.7598 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005856/1.645, allocations: 59.86 kB / 0.7599 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001972/1.647, allocations: 2.957 MB / 0.7627 GB, free: 99 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001314/1.648, allocations: 0.9367 MB / 0.7637 GB, free: 98.44 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005574/1.649, allocations: 118 kB / 0.7638 GB, free: 98.44 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003578/1.649, allocations: 0.5561 MB / 0.7643 GB, free: 98.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004853/1.654, allocations: 2.235 MB / 0.7665 GB, free: 97.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007272/1.661, allocations: 5.383 MB / 0.7717 GB, free: 92.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007303/1.669, allocations: 3.516 MB / 0.7752 GB, free: 91.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.663e-05/1.669, allocations: 31.47 kB / 0.7752 GB, free: 91.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=766) (initialization): time 0.0233/1.692, allocations: 8.255 MB / 0.7833 GB, free: 88.96 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.698e-05/1.692, allocations: 56 kB / 0.7833 GB, free: 88.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000155/1.692, allocations: 110.7 kB / 0.7834 GB, free: 88.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006325/1.699, allocations: 1.035 MB / 0.7844 GB, free: 88.85 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008463/1.707, allocations: 1.317 MB / 0.7857 GB, free: 88.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003707/1.711, allocations: 2.463 MB / 0.7881 GB, free: 87.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005881/1.717, allocations: 323.8 kB / 0.7884 GB, free: 87.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001183/1.718, allocations: 331.4 kB / 0.7888 GB, free: 87 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 503 * Number of states: 0 () * Number of discrete variables: 24 (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 (713): * Single equations (assignments): 704 * 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.00118/1.719, allocations: 0.5209 MB / 0.7893 GB, free: 86.57 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006507/1.72, allocations: 287.2 kB / 0.7895 GB, free: 86.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01396/1.734, allocations: 4.853 MB / 0.7943 GB, free: 84.82 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001018/1.734, allocations: 50.88 kB / 0.7943 GB, free: 84.82 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/1.734, allocations: 3.812 kB / 0.7943 GB, free: 84.82 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.329e-05/1.734, allocations: 9.938 kB / 0.7943 GB, free: 84.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03132/1.765, allocations: 11.48 MB / 0.8056 GB, free: 77.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.212e-05/1.765, allocations: 8 kB / 0.8056 GB, free: 77.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003544/1.769, allocations: 416.4 kB / 0.806 GB, free: 77.26 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005095/1.774, allocations: 0.6203 MB / 0.8066 GB, free: 76.85 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004513/1.775, allocations: 53.3 kB / 0.8066 GB, free: 76.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002979/1.778, allocations: 2.068 MB / 0.8086 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/1.778, allocations: 11.12 kB / 0.8086 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01718/1.795, allocations: 7.672 MB / 0.8161 GB, free: 67.41 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/1.796, allocations: 331.1 kB / 0.8165 GB, free: 67.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009651/1.797, allocations: 52.66 kB / 0.8165 GB, free: 67.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002398/1.799, allocations: 126.8 kB / 0.8166 GB, free: 66.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004262/1.8, allocations: 156.8 kB / 0.8168 GB, free: 66.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002422/1.8, allocations: 79.48 kB / 0.8169 GB, free: 66.78 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003474/1.803, allocations: 1.698 MB / 0.8185 GB, free: 65.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.41e-07/1.804, allocations: 0 / 0.8185 GB, free: 65.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006172/1.81, allocations: 1.004 MB / 0.8195 GB, free: 64.28 MB / 0.4948 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 (207): * Single equations (assignments): 198 * 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.0007864/1.811, allocations: 199.1 kB / 0.8197 GB, free: 64.08 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161: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 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161: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.01411/1.825, allocations: 5.903 MB / 0.8254 GB, free: 58.72 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/1.825, allocations: 4.125 kB / 0.8254 GB, free: 58.71 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00653/1.831, allocations: 2.349 MB / 0.8277 GB, free: 56.56 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003233/1.835, allocations: 392.8 kB / 0.8281 GB, free: 56.24 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02389/1.858, allocations: 9.772 MB / 0.8377 GB, free: 47.46 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006434/1.865, allocations: 3.624 MB / 0.8412 GB, free: 44.68 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/1.867, allocations: 280 kB / 0.8415 GB, free: 44.41 MB / 0.4948 GB Notification: Performance of SimCode: time 1.142e-06/1.867, allocations: 0 / 0.8415 GB, free: 44.41 MB / 0.4948 GB Notification: Performance of Templates: time 0.5548/2.422, allocations: 114.3 MB / 0.9531 GB, free: 119.2 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit2/FreeMotionScalarInit2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches