Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009916/0.0009917, allocations: 200.1 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007656/0.0007656, allocations: 99.38 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1845/0.1845, allocations: 44.84 MB / 392 MB, free: 9.312 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002722/0.0002722, allocations: 8 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09654/0.09682, allocations: 62.95 MB / 0.5153 GB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.2096/0.3065, allocations: 38 MB / 0.5524 GB, free: 2.852 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01999/0.3265, allocations: 8.661 MB / 0.5609 GB, free: 12.98 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007243/0.3338, allocations: 174 kB / 0.5611 GB, free: 12.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005272/0.3391, allocations: 1.905 MB / 0.5629 GB, free: 11.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01389/0.353, allocations: 5.591 MB / 0.5684 GB, free: 7.191 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002045/0.3551, allocations: 499.2 kB / 0.5689 GB, free: 6.703 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004971/0.36, allocations: 4.675 MB / 0.5734 GB, free: 2.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004921/0.365, allocations: 4.273 MB / 0.5776 GB, free: 13.71 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001501/0.3665, allocations: 1.23 MB / 0.5788 GB, free: 12.48 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001953/0.3685, allocations: 1.955 MB / 0.5807 GB, free: 10.52 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003401/0.3688, allocations: 156 kB / 0.5809 GB, free: 10.36 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001609/0.3704, allocations: 0.9127 MB / 0.5817 GB, free: 9.449 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001288/0.3717, allocations: 1.78 MB / 0.5835 GB, free: 7.664 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007505/0.3725, allocations: 0.9167 MB / 0.5844 GB, free: 6.738 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005181/0.3777, allocations: 6.112 MB / 0.5903 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3777, allocations: 4 kB / 0.5904 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3777, allocations: 0 / 0.5904 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000168/0.3779, allocations: 0 / 0.5904 GB, free: 0.6094 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.008609/0.3865, allocations: 4.508 MB / 0.5948 GB, free: 12.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.3865, allocations: 12.03 kB / 0.5948 GB, free: 12.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009941/0.3965, allocations: 3.265 MB / 0.598 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004507/0.401, allocations: 2.238 MB / 0.6001 GB, free: 6.453 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.4012, allocations: 262.7 kB / 0.6004 GB, free: 6.195 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007514/0.402, allocations: 355.7 kB / 0.6007 GB, free: 5.848 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0178/0.4198, allocations: 12.32 MB / 0.6128 GB, free: 9.059 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.955e-05/0.42, allocations: 27.72 kB / 0.6128 GB, free: 9.031 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004237/0.4204, allocations: 159.8 kB / 0.6129 GB, free: 8.875 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003731/0.4241, allocations: 2.696 MB / 0.6156 GB, free: 6.172 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01913/0.4433, allocations: 11.26 MB / 0.6266 GB, free: 10.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05079/0.4941, allocations: 39.51 MB / 0.6652 GB, free: 2.484 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009097/0.5032, allocations: 4.951 MB / 0.67 GB, free: 13.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002989/0.5063, allocations: 2.358 MB / 0.6723 GB, free: 10.93 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009321/0.5156, allocations: 6.745 MB / 0.6789 GB, free: 3.816 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.5157, allocations: 52.56 kB / 0.6789 GB, free: 3.754 MB / 490.7 MB Notification: Performance of pre-optimization done (n=226): time 5.159e-06/0.5157, allocations: 3.938 kB / 0.6789 GB, free: 3.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=235): time 0.03589/0.5516, allocations: 16.13 MB / 0.6947 GB, free: 3.461 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.5517, allocations: 69.41 kB / 0.6948 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/0.5558, allocations: 3.129 MB / 0.6978 GB, free: 240 kB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002564/0.5561, allocations: 57.7 kB / 0.6979 GB, free: 176 kB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001873/0.5579, allocations: 3.216 MB / 0.701 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008652/0.5588, allocations: 0.8867 MB / 0.7019 GB, free: 12.01 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.559, allocations: 116 kB / 0.702 GB, free: 11.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003183/0.5594, allocations: 0.5662 MB / 0.7025 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003084/0.5625, allocations: 2.35 MB / 0.7048 GB, free: 8.969 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00503/0.5675, allocations: 5.662 MB / 0.7104 GB, free: 1.672 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1962/0.7637, allocations: 3.625 MB / 0.7139 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.535e-05/0.7639, allocations: 36.91 kB / 0.7139 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=795) (initialization): time 0.01503/0.7789, allocations: 8.773 MB / 0.7225 GB, free: 158 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.139e-05/0.779, allocations: 54.47 kB / 0.7226 GB, free: 158 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001649/0.7792, allocations: 118.4 kB / 0.7227 GB, free: 158 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003379/0.7826, allocations: 1.147 MB / 0.7238 GB, free: 157.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004195/0.7868, allocations: 1.35 MB / 0.7251 GB, free: 157.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.7921, allocations: 4.589 MB / 0.7296 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/0.7957, allocations: 323.1 kB / 0.7299 GB, free: 155 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007974/0.7965, allocations: 344.6 kB / 0.7302 GB, free: 155 MB / 0.5105 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.arrowLine.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 (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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.00393/0.8005, allocations: 2.374 MB / 0.7325 GB, free: 154 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004226/0.8009, allocations: 293.3 kB / 0.7328 GB, free: 154 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005886/0.8068, allocations: 4.374 MB / 0.7371 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.513e-05/0.8069, allocations: 48.77 kB / 0.7371 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.8069, allocations: 0 / 0.7371 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.8069, allocations: 15.67 kB / 0.7372 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.8193, allocations: 10.36 MB / 0.7473 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.8193, allocations: 3.75 kB / 0.7473 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/0.8207, allocations: 377.6 kB / 0.7476 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001724/0.8225, allocations: 0.6788 MB / 0.7483 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.8226, allocations: 46.14 kB / 0.7483 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001947/0.8246, allocations: 2.433 MB / 0.7507 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.8246, allocations: 8 kB / 0.7507 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006928/0.8315, allocations: 6.698 MB / 0.7573 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005981/0.8321, allocations: 344.3 kB / 0.7576 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/0.8324, allocations: 49.09 kB / 0.7576 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.8335, allocations: 135.8 kB / 0.7578 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.8337, allocations: 133.7 kB / 0.7579 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.8338, allocations: 70.09 kB / 0.758 GB, free: 139.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001965/0.8358, allocations: 1.883 MB / 0.7598 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8358, allocations: 4 kB / 0.7598 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003487/0.8393, allocations: 1.058 MB / 0.7608 GB, free: 136.8 MB / 0.5105 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 (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.0003453/0.8396, allocations: 172.4 kB / 0.761 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006601/0.8462, allocations: 5.752 MB / 0.7666 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.8463, allocations: 4 kB / 0.7666 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002882/0.8492, allocations: 2.381 MB / 0.7689 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/0.8511, allocations: 462.2 kB / 0.7694 GB, free: 128 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01373/0.8649, allocations: 13.8 MB / 0.7829 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00269/0.8676, allocations: 3.675 MB / 0.7865 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009578/0.8686, allocations: 283.4 kB / 0.7867 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.463e-06/0.8686, allocations: 0 / 0.7867 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.09866/0.9672, allocations: 115 MB / 0.899 GB, free: 11.1 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches