Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 190.9 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 226.5 MB / 244.1 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007496/0.0007496, allocations: 98.64 kB / 296.1 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2848/0.2848, allocations: 44.82 MB / 393 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.0002619, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2701, allocations: 62.96 MB / 0.5165 GB, free: 37.43 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1169/0.3871, allocations: 106.3 MB / 0.6203 GB, free: 15.07 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.3873, allocations: 79.97 kB / 0.6203 GB, free: 15 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4182/0.8056, allocations: 89.93 MB / 0.7082 GB, free: 99.04 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.8056, allocations: 3.094 kB / 0.7082 GB, free: 99.04 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001638/0.8058, allocations: 83.06 kB / 0.7083 GB, free: 99.04 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.01589/0.8217, allocations: 4.347 MB / 0.7125 GB, free: 97.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.8217, allocations: 8.125 kB / 0.7125 GB, free: 97.17 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01456/0.8363, allocations: 3.519 MB / 0.7159 GB, free: 96.87 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008705/0.8451, allocations: 3.361 MB / 0.7192 GB, free: 96.19 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002973/0.8454, allocations: 330.1 kB / 0.7195 GB, free: 96.18 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001956/0.8474, allocations: 430.7 kB / 0.7199 GB, free: 96.18 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01896/0.8663, allocations: 11.15 MB / 0.7308 GB, free: 92.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001099/0.8665, allocations: 23.09 kB / 0.7309 GB, free: 92.32 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006517/0.8672, allocations: 198.7 kB / 0.7311 GB, free: 92.21 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001224/0.8684, allocations: 1.224 MB / 0.7322 GB, free: 91.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/0.885, allocations: 10.72 MB / 0.7427 GB, free: 88.69 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04285/0.9279, allocations: 37.13 MB / 0.779 GB, free: 61.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007102/0.935, allocations: 4.564 MB / 0.7834 GB, free: 56.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002295/0.9373, allocations: 2.204 MB / 0.7856 GB, free: 54.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007986/0.9382, allocations: 1.314 MB / 0.7869 GB, free: 52.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.9382, allocations: 60.48 kB / 0.7869 GB, free: 52.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 4.999e-06/0.9382, allocations: 3.938 kB / 0.7869 GB, free: 52.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=247): time 0.03108/0.9693, allocations: 13.55 MB / 0.8002 GB, free: 39.13 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.9694, allocations: 77.41 kB / 0.8002 GB, free: 39.04 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003038/0.9724, allocations: 2.759 MB / 0.8029 GB, free: 36.27 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002581/0.9727, allocations: 57.7 kB / 0.803 GB, free: 36.21 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.9737, allocations: 2.885 MB / 0.8058 GB, free: 33.32 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007222/0.9744, allocations: 0.9072 MB / 0.8067 GB, free: 32.42 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.9747, allocations: 104 kB / 0.8068 GB, free: 32.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000224/0.9749, allocations: 0.5496 MB / 0.8073 GB, free: 31.76 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002516/0.9774, allocations: 2.225 MB / 0.8095 GB, free: 29.53 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003369/0.9808, allocations: 5.309 MB / 0.8147 GB, free: 22.71 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006618/0.9874, allocations: 8.285 MB / 0.8228 GB, free: 12.91 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.163e-05/0.9875, allocations: 32 kB / 0.8228 GB, free: 12.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=744) (initialization): time 0.01133/0.9988, allocations: 8.207 MB / 0.8308 GB, free: 4.656 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.422e-05/0.9989, allocations: 48 kB / 0.8309 GB, free: 4.609 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.742e-05/0.999, allocations: 108.9 kB / 0.831 GB, free: 4.504 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002908/1.002, allocations: 1.017 MB / 0.832 GB, free: 3.477 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003214/1.005, allocations: 1.271 MB / 0.8332 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/1.007, allocations: 2.463 MB / 0.8356 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002778/1.01, allocations: 315.6 kB / 0.8359 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004237/1.01, allocations: 323.9 kB / 0.8362 GB, free: 14.98 MB / 0.4948 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 () * 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.003251/1.014, allocations: 2.22 MB / 0.8384 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003528/1.014, allocations: 280.3 kB / 0.8387 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008021/1.022, allocations: 4.769 MB / 0.8433 GB, free: 7.668 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.518e-05/1.022, allocations: 49.86 kB / 0.8434 GB, free: 7.621 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.022, allocations: 0 / 0.8434 GB, free: 7.621 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/1.022, allocations: 11.91 kB / 0.8434 GB, free: 7.609 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/1.039, allocations: 11.26 MB / 0.8544 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.464e-05/1.039, allocations: 8 kB / 0.8544 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/1.041, allocations: 395.3 kB / 0.8547 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002581/1.043, allocations: 0.6111 MB / 0.8553 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/1.044, allocations: 51.98 kB / 0.8554 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/1.046, allocations: 2.058 MB / 0.8574 GB, free: 8.949 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/1.046, allocations: 15.94 kB / 0.8574 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009695/1.055, allocations: 6.804 MB / 0.8641 GB, free: 1.977 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007366/1.056, allocations: 325.5 kB / 0.8644 GB, free: 1.637 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003147/1.056, allocations: 49 kB / 0.8644 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.058, allocations: 127.1 kB / 0.8645 GB, free: 1.469 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002941/1.058, allocations: 148.9 kB / 0.8647 GB, free: 1.324 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/1.058, allocations: 75.98 kB / 0.8648 GB, free: 1.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002391/1.06, allocations: 1.673 MB / 0.8664 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2e-07/1.06, allocations: 4 kB / 0.8664 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003431/1.064, allocations: 0.9763 MB / 0.8673 GB, free: 14.59 MB / 0.5261 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.0004139/1.064, allocations: 200.8 kB / 0.8675 GB, free: 14.39 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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.00811/1.072, allocations: 5.827 MB / 0.8732 GB, free: 8.531 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.072, allocations: 7.938 kB / 0.8732 GB, free: 8.523 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003431/1.076, allocations: 2.316 MB / 0.8755 GB, free: 6.152 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004506/1.08, allocations: 434.1 kB / 0.8759 GB, free: 5.738 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2269/1.307, allocations: 13.14 MB / 0.8887 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003463/1.311, allocations: 3.442 MB / 0.8921 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/1.312, allocations: 269.2 kB / 0.8924 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.543e-06/1.312, allocations: 2.062 kB / 0.8924 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.1474/1.459, allocations: 116.2 MB / 1.006 GB, free: 64.57 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches