Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|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",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|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",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001177/0.001177, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 8.891 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2228/0.2228, allocations: 46.1 MB / 344.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 76.94 kB / 417.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1323, allocations: 62.45 MB / 479.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.2626/0.3949, allocations: 38.13 MB / 0.5059 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02055/0.4155, allocations: 8.423 MB / 0.5142 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009475/0.4251, allocations: 162.1 kB / 0.5143 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005499/0.4307, allocations: 2.322 MB / 0.5166 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005613/0.4363, allocations: 1.779 MB / 0.5183 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001974/0.4383, allocations: 0.5312 MB / 0.5188 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00877/0.4471, allocations: 5.93 MB / 0.5246 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006366/0.4535, allocations: 3.503 MB / 0.5281 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003313/0.4569, allocations: 1.369 MB / 0.5294 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003964/0.4609, allocations: 2.25 MB / 0.5316 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001513/0.4624, allocations: 249.1 kB / 0.5318 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004173/0.4666, allocations: 1.173 MB / 0.533 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003596/0.4702, allocations: 1.928 MB / 0.5349 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004935/0.4752, allocations: 2.285 MB / 0.5371 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00802/0.4832, allocations: 6.114 MB / 0.5431 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.4833, allocations: 0 / 0.5431 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4833, allocations: 3.938 kB / 0.5431 GB, free: 12.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003705/0.4837, allocations: 0 / 0.5431 GB, free: 12.84 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.01647/0.5002, allocations: 5.337 MB / 0.5483 GB, free: 7.656 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.5002, allocations: 16.8 kB / 0.5483 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/0.5115, allocations: 3.159 MB / 0.5514 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005724/0.5173, allocations: 2.247 MB / 0.5536 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003125/0.5177, allocations: 262.1 kB / 0.5538 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001779/0.5194, allocations: 346.7 kB / 0.5541 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02674/0.5462, allocations: 12.17 MB / 0.566 GB, free: 5.195 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002824/0.5466, allocations: 35.66 kB / 0.5661 GB, free: 5.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002069/0.5486, allocations: 162.4 kB / 0.5662 GB, free: 5.047 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004448/0.5531, allocations: 2.641 MB / 0.5688 GB, free: 2.414 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02279/0.5759, allocations: 11.2 MB / 0.5797 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06833/0.6443, allocations: 39.11 MB / 0.6179 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/0.6555, allocations: 4.978 MB / 0.6228 GB, free: 10.23 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003551/0.6591, allocations: 2.37 MB / 0.6251 GB, free: 7.855 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01179/0.6709, allocations: 6.802 MB / 0.6318 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.192e-05/0.671, allocations: 56.56 kB / 0.6318 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of pre-optimization done (n=226): time 1.821e-05/0.671, allocations: 3.984 kB / 0.6318 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of matching and sorting (n=235): time 0.04056/0.7116, allocations: 16.18 MB / 0.6476 GB, free: 324 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.875e-05/0.7117, allocations: 77.34 kB / 0.6477 GB, free: 236 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006465/0.7182, allocations: 3.12 MB / 0.6507 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003656/0.7186, allocations: 59.66 kB / 0.6508 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00256/0.7212, allocations: 3.175 MB / 0.6539 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001132/0.7223, allocations: 0.888 MB / 0.6548 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002639/0.725, allocations: 1.209 MB / 0.6559 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.7251, allocations: 301.1 kB / 0.6562 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003982/0.7291, allocations: 2.382 MB / 0.6585 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006385/0.7355, allocations: 5.693 MB / 0.6641 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01088/0.7464, allocations: 8.764 MB / 0.6727 GB, free: 3.359 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001188/0.7466, allocations: 32 kB / 0.6727 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of matching and sorting (n=795) (initialization): time 0.01734/0.7639, allocations: 8.844 MB / 0.6813 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.7641, allocations: 59.94 kB / 0.6814 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001816/0.7643, allocations: 116.9 kB / 0.6815 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003528/0.7678, allocations: 1.141 MB / 0.6826 GB, free: 9.145 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004483/0.7723, allocations: 1.349 MB / 0.6839 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00926/0.7816, allocations: 6.494 MB / 0.6903 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004075/0.7857, allocations: 323.7 kB / 0.6906 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/0.7868, allocations: 354.2 kB / 0.6909 GB, free: 388 kB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 32 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (734): * Single equations (assignments): 726 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,5)} Notification: Performance of prepare postOptimizeDAE: time 0.004793/0.7916, allocations: 2.34 MB / 0.6932 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006862/0.7923, allocations: 292.2 kB / 0.6935 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007882/0.8002, allocations: 4.393 MB / 0.6978 GB, free: 9.32 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.321e-05/0.8003, allocations: 46.33 kB / 0.6978 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.8003, allocations: 8 kB / 0.6978 GB, free: 9.27 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/0.8003, allocations: 7.969 kB / 0.6978 GB, free: 9.262 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.24/1.04, allocations: 10.3 MB / 0.7079 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-05/1.04, allocations: 10.22 kB / 0.7079 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00196/1.042, allocations: 376.4 kB / 0.7083 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00229/1.045, allocations: 0.6746 MB / 0.7089 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004674/1.045, allocations: 47.75 kB / 0.709 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/1.048, allocations: 2.429 MB / 0.7113 GB, free: 189.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/1.048, allocations: 6.25 kB / 0.7113 GB, free: 189.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/1.059, allocations: 6.734 MB / 0.7179 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007789/1.06, allocations: 333.9 kB / 0.7182 GB, free: 188.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008144/1.061, allocations: 45.25 kB / 0.7183 GB, free: 188.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/1.063, allocations: 138 kB / 0.7184 GB, free: 188 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004708/1.063, allocations: 135 kB / 0.7185 GB, free: 188 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002551/1.064, allocations: 64.98 kB / 0.7186 GB, free: 188 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004195/1.068, allocations: 1.89 MB / 0.7205 GB, free: 187.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.71e-07/1.068, allocations: 3.125 kB / 0.7205 GB, free: 187.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005638/1.073, allocations: 1.037 MB / 0.7215 GB, free: 187.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,body.w_a[1],body.w_a[2],body.w_a[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 (187): * Single equations (assignments): 178 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006958/1.074, allocations: 188.5 kB / 0.7216 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009198/1.083, allocations: 5.919 MB / 0.7274 GB, free: 185.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/1.083, allocations: 2.312 kB / 0.7274 GB, free: 185.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003784/1.087, allocations: 2.408 MB / 0.7298 GB, free: 184.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003155/1.09, allocations: 453 kB / 0.7302 GB, free: 184 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02078/1.111, allocations: 13.93 MB / 0.7438 GB, free: 176.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003853/1.115, allocations: 3.641 MB / 0.7474 GB, free: 175 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/1.116, allocations: 280.8 kB / 0.7476 GB, free: 175 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/1.116, allocations: 0 / 0.7476 GB, free: 175 MB / 0.545 GB Notification: Performance of Templates: time 0.1065/1.223, allocations: 114.2 MB / 0.8592 GB, free: 63.25 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches