Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.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_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_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001039, allocations: 112.1 kB / 18.46 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 206.8 kB / 19.41 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2339/0.2339, allocations: 46.09 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 79.88 kB / 482 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3707, allocations: 62.44 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.01439/0.3851, allocations: 12.66 MB / 0.544 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.3958, allocations: 4.056 MB / 0.548 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002982/0.3988, allocations: 69.75 kB / 0.5481 GB, free: 0.543 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004323/0.4032, allocations: 1.842 MB / 0.5499 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005642/0.4089, allocations: 1.809 MB / 0.5516 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.4105, allocations: 0.5107 MB / 0.5521 GB, free: 12.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006068/0.4166, allocations: 3.784 MB / 0.5558 GB, free: 8.965 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004919/0.4215, allocations: 2.84 MB / 0.5586 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002739/0.4243, allocations: 1.351 MB / 0.5599 GB, free: 4.715 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004172/0.4285, allocations: 1.873 MB / 0.5617 GB, free: 2.836 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001543/0.4301, allocations: 284 kB / 0.562 GB, free: 2.559 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003261/0.4333, allocations: 1.112 MB / 0.5631 GB, free: 1.445 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003236/0.4366, allocations: 1.757 MB / 0.5648 GB, free: 15.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005406/0.442, allocations: 2.081 MB / 0.5668 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01053/0.4526, allocations: 6.942 MB / 0.5736 GB, free: 6.625 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4526, allocations: 0 / 0.5736 GB, free: 6.625 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4526, allocations: 0 / 0.5736 GB, free: 6.625 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002894/0.4529, allocations: 0 / 0.5736 GB, free: 6.625 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1643 * Number of variables: 1643 Notification: Performance of Generate backend data structure: time 0.01494/0.4679, allocations: 4.821 MB / 0.5783 GB, free: 1.734 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.4679, allocations: 8.031 kB / 0.5783 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01215/0.4801, allocations: 3.122 MB / 0.5814 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005278/0.4854, allocations: 2.048 MB / 0.5834 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.4856, allocations: 217.8 kB / 0.5836 GB, free: 12.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/0.4868, allocations: 295.8 kB / 0.5839 GB, free: 11.99 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02255/0.5094, allocations: 11.4 MB / 0.595 GB, free: 156 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001801/0.5096, allocations: 31.66 kB / 0.595 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001303/0.511, allocations: 131.9 kB / 0.5952 GB, free: 15.99 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004567/0.5155, allocations: 2.577 MB / 0.5977 GB, free: 13.41 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02317/0.5387, allocations: 10.68 MB / 0.6081 GB, free: 2.703 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06163/0.6004, allocations: 35.55 MB / 0.6428 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/0.6106, allocations: 4.593 MB / 0.6473 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003495/0.6142, allocations: 2.201 MB / 0.6495 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001356/0.6156, allocations: 1.315 MB / 0.6507 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.779e-05/0.6156, allocations: 52.56 kB / 0.6508 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=235): time 6.352e-06/0.6157, allocations: 4 kB / 0.6508 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of matching and sorting (n=247): time 0.04227/0.6579, allocations: 13.27 MB / 0.6638 GB, free: 8.375 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.658, allocations: 69.41 kB / 0.6638 GB, free: 8.293 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004821/0.6629, allocations: 2.753 MB / 0.6665 GB, free: 5.523 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003911/0.6633, allocations: 61.69 kB / 0.6666 GB, free: 5.457 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002156/0.6654, allocations: 2.845 MB / 0.6694 GB, free: 2.57 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001266/0.6667, allocations: 0.9134 MB / 0.6702 GB, free: 1.645 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002295/0.669, allocations: 1.112 MB / 0.6713 GB, free: 0.5195 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.6691, allocations: 305.1 kB / 0.6716 GB, free: 224 kB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003748/0.6729, allocations: 2.256 MB / 0.6738 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00596/0.6789, allocations: 5.344 MB / 0.679 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/0.69, allocations: 8.323 MB / 0.6872 GB, free: 13.27 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001519/0.6902, allocations: 36 kB / 0.6872 GB, free: 13.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01744/0.7077, allocations: 8.275 MB / 0.6953 GB, free: 4.945 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.7079, allocations: 52 kB / 0.6953 GB, free: 4.895 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002104/0.7081, allocations: 112 kB / 0.6954 GB, free: 4.785 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003924/0.712, allocations: 1.014 MB / 0.6964 GB, free: 3.762 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004494/0.7165, allocations: 1.287 MB / 0.6977 GB, free: 2.473 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/0.7196, allocations: 2.593 MB / 0.7002 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00355/0.7231, allocations: 307.7 kB / 0.7005 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009571/0.7241, allocations: 324 kB / 0.7008 GB, free: 15.12 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 489 * Number of states: 0 () * Number of discrete variables: 26 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (696): * Single equations (assignments): 687 * 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 {(3,100.0%), (2,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 prepare postOptimizeDAE: time 0.004425/0.7285, allocations: 2.185 MB / 0.703 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000711/0.7293, allocations: 272.4 kB / 0.7032 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009974/0.7392, allocations: 4.795 MB / 0.7079 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.109e-05/0.7393, allocations: 11.95 kB / 0.7079 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.7393, allocations: 4 kB / 0.7079 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006937/0.74, allocations: 309.5 kB / 0.7082 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000716/0.7408, allocations: 39.92 kB / 0.7083 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.7423, allocations: 123.8 kB / 0.7084 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003989/0.7427, allocations: 117.8 kB / 0.7085 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007885/0.7506, allocations: 4.053 MB / 0.7124 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.3414/1.092, allocations: 6.29 MB / 0.7186 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002563/1.095, allocations: 1.733 MB / 0.7203 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002856/1.097, allocations: 1.672 MB / 0.7219 GB, free: 160 MB / 0.5606 GB Notification: Performance of Backend: time 6.92e-07/1.098, allocations: 2.75 kB / 0.7219 GB, free: 160 MB / 0.5606 GB [/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. [/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. Notification: Performance of simCode: created initialization part: time 0.009573/1.107, allocations: 4.634 MB / 0.7264 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01279/1.12, allocations: 9.422 MB / 0.7356 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.06697/1.187, allocations: 42.74 MB / 0.7774 GB, free: 116 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches