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.001696/0.001702, allocations: 178 kB / 18.09 MB, free: 3.75 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.372/1.372, allocations: 223.3 MB / 242.1 MB, free: 9.969 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.0008095/0.0008093, allocations: 87.33 kB / 293.3 MB, free: 10.58 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.3184/0.3184, allocations: 44.14 MB / 388.5 MB, free: 38.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003685, allocations: 12 kB / 461.1 MB, free: 1.336 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3229, allocations: 61.88 MB / 0.5107 GB, free: 37.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.4567, allocations: 105.5 MB / 0.6138 GB, free: 5.52 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.457, allocations: 79.95 kB / 0.6139 GB, free: 5.445 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4415/0.8986, allocations: 89.65 MB / 0.7014 GB, free: 96.22 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.128e-06/0.8986, allocations: 0 / 0.7014 GB, free: 96.22 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002538/0.8989, allocations: 74 kB / 0.7015 GB, free: 96.22 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: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.01717/0.9161, allocations: 4.247 MB / 0.7056 GB, free: 94.37 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.9161, allocations: 9.125 kB / 0.7056 GB, free: 94.37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01616/0.9323, allocations: 3.521 MB / 0.7091 GB, free: 94.08 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009975/0.9423, allocations: 3.446 MB / 0.7125 GB, free: 93.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006184/0.943, allocations: 331.6 kB / 0.7128 GB, free: 93.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003129/0.9461, allocations: 437.1 kB / 0.7132 GB, free: 93.51 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02782/0.974, allocations: 11.15 MB / 0.7241 GB, free: 91.16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001806/0.9742, allocations: 22.72 kB / 0.7241 GB, free: 91.14 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001096/0.9753, allocations: 199.8 kB / 0.7243 GB, free: 91.03 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001465/0.9768, allocations: 1.219 MB / 0.7255 GB, free: 90.81 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01791/0.9947, allocations: 10.71 MB / 0.7359 GB, free: 87.52 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04734/1.042, allocations: 37.13 MB / 0.7722 GB, free: 65.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007132/1.049, allocations: 4.572 MB / 0.7767 GB, free: 63.07 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002697/1.052, allocations: 2.2 MB / 0.7788 GB, free: 61.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009713/1.053, allocations: 1.317 MB / 0.7801 GB, free: 59.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/1.053, allocations: 60.44 kB / 0.7802 GB, free: 59.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 5.5e-06/1.053, allocations: 0 / 0.7802 GB, free: 59.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=247): time 0.03132/1.084, allocations: 13.55 MB / 0.7934 GB, free: 48.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/1.084, allocations: 73.41 kB / 0.7935 GB, free: 48.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003823/1.088, allocations: 2.757 MB / 0.7962 GB, free: 46.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003809/1.089, allocations: 57.7 kB / 0.7962 GB, free: 46.13 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00116/1.09, allocations: 2.885 MB / 0.799 GB, free: 43.56 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009243/1.091, allocations: 0.9117 MB / 0.7999 GB, free: 42.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/1.091, allocations: 111.9 kB / 0.8 GB, free: 42.64 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000235/1.091, allocations: 0.5435 MB / 0.8006 GB, free: 42.16 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002552/1.094, allocations: 2.222 MB / 0.8027 GB, free: 40.09 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003675/1.097, allocations: 5.309 MB / 0.8079 GB, free: 33.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007287/1.105, allocations: 8.285 MB / 0.816 GB, free: 23.47 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.305e-05/1.105, allocations: 32 kB / 0.816 GB, free: 23.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=744) (initialization): time 0.01271/1.118, allocations: 8.209 MB / 0.824 GB, free: 15.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.929e-05/1.118, allocations: 53.56 kB / 0.8241 GB, free: 15.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-05/1.118, allocations: 108 kB / 0.8242 GB, free: 15.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002939/1.121, allocations: 1.013 MB / 0.8252 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003601/1.124, allocations: 1.275 MB / 0.8264 GB, free: 12.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/1.126, allocations: 2.455 MB / 0.8288 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003348/1.13, allocations: 311.8 kB / 0.8291 GB, free: 9.867 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004678/1.13, allocations: 327.9 kB / 0.8294 GB, free: 9.547 MB / 490.7 MB 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 () * Number of clocked 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.003584/1.134, allocations: 2.216 MB / 0.8316 GB, free: 7.324 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003996/1.134, allocations: 280.3 kB / 0.8319 GB, free: 7.047 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007077/1.141, allocations: 4.767 MB / 0.8365 GB, free: 2.242 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.878e-05/1.141, allocations: 47.28 kB / 0.8366 GB, free: 2.199 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/1.141, allocations: 7.938 kB / 0.8366 GB, free: 2.191 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/1.141, allocations: 15.89 kB / 0.8366 GB, free: 2.176 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01884/1.16, allocations: 11.27 MB / 0.8476 GB, free: 6.773 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/1.16, allocations: 9 kB / 0.8476 GB, free: 6.766 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/1.162, allocations: 391.4 kB / 0.848 GB, free: 6.383 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002659/1.165, allocations: 0.6187 MB / 0.8486 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002102/1.165, allocations: 59.81 kB / 0.8486 GB, free: 5.699 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002123/1.167, allocations: 2.058 MB / 0.8507 GB, free: 3.504 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/1.167, allocations: 15.94 kB / 0.8507 GB, free: 3.488 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/1.177, allocations: 6.801 MB / 0.8573 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009806/1.178, allocations: 321.5 kB / 0.8576 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003596/1.179, allocations: 51.98 kB / 0.8577 GB, free: 12.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/1.18, allocations: 123.1 kB / 0.8578 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003114/1.18, allocations: 152.9 kB / 0.8579 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/1.18, allocations: 79.92 kB / 0.858 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00297/1.183, allocations: 1.665 MB / 0.8596 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/1.183, allocations: 0 / 0.8596 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006006/1.189, allocations: 0.9801 MB / 0.8606 GB, free: 9.156 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 () * Number of clocked 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.0006351/1.19, allocations: 199.5 kB / 0.8608 GB, free: 8.953 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 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 $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01063/1.201, allocations: 5.833 MB / 0.8665 GB, free: 3.094 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/1.201, allocations: 0 / 0.8665 GB, free: 3.094 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004101/1.205, allocations: 2.324 MB / 0.8687 GB, free: 0.7227 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005841/1.211, allocations: 430.8 kB / 0.8692 GB, free: 324 kB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02439/1.235, allocations: 12.63 MB / 0.8815 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005313/1.241, allocations: 3.443 MB / 0.8849 GB, free: 108 kB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.2481/1.489, allocations: 2.018 MB / 0.8868 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006066/1.489, allocations: 220.2 kB / 0.887 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.062e-06/1.489, allocations: 2.438 kB / 0.887 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.05873/1.548, allocations: 30.25 MB / 0.9166 GB, free: 125.8 MB / 0.5261 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/jenkins1/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