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.001561/0.001562, allocations: 111.6 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00154/0.00154, allocations: 207.9 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, 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.2111/0.2111, allocations: 46.12 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 75.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3211, allocations: 62.43 MB / 0.5317 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.01434/0.3355, allocations: 12.65 MB / 0.544 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.3469, allocations: 4.061 MB / 0.548 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003341/0.3503, allocations: 69.41 kB / 0.548 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004419/0.3547, allocations: 1.84 MB / 0.5498 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005141/0.3599, allocations: 1.77 MB / 0.5516 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.3615, allocations: 0.5028 MB / 0.5521 GB, free: 12.78 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005589/0.3671, allocations: 3.797 MB / 0.5558 GB, free: 8.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004153/0.3713, allocations: 2.837 MB / 0.5585 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.3738, allocations: 1.347 MB / 0.5599 GB, free: 4.738 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003179/0.377, allocations: 1.869 MB / 0.5617 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001091/0.3781, allocations: 284 kB / 0.562 GB, free: 2.586 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002693/0.3808, allocations: 1.108 MB / 0.563 GB, free: 1.477 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002098/0.3829, allocations: 1.761 MB / 0.5648 GB, free: 15.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003214/0.3862, allocations: 2.077 MB / 0.5668 GB, free: 13.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008137/0.3943, allocations: 6.95 MB / 0.5736 GB, free: 6.648 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3943, allocations: 0 / 0.5736 GB, free: 6.648 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3943, allocations: 4 kB / 0.5736 GB, free: 6.645 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.00026/0.3946, allocations: 0 / 0.5736 GB, free: 6.645 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.01255/0.4072, allocations: 4.817 MB / 0.5783 GB, free: 1.758 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4072, allocations: 12.03 kB / 0.5783 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/0.4173, allocations: 3.114 MB / 0.5813 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00366/0.421, allocations: 2.056 MB / 0.5833 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.4211, allocations: 213.8 kB / 0.5835 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007626/0.4219, allocations: 291.8 kB / 0.5838 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01861/0.4405, allocations: 11.41 MB / 0.595 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.4407, allocations: 31.72 kB / 0.595 GB, free: 148 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008257/0.4415, allocations: 135.8 kB / 0.5951 GB, free: 12 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003953/0.4455, allocations: 2.577 MB / 0.5976 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02024/0.4657, allocations: 10.68 MB / 0.6081 GB, free: 2.723 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05046/0.5162, allocations: 35.56 MB / 0.6428 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008362/0.5246, allocations: 4.577 MB / 0.6473 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003268/0.5279, allocations: 2.197 MB / 0.6494 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001199/0.5292, allocations: 1.327 MB / 0.6507 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.087e-05/0.5292, allocations: 56.56 kB / 0.6508 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=235): time 5.671e-06/0.5293, allocations: 0 / 0.6508 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=247): time 0.03519/0.5644, allocations: 13.27 MB / 0.6637 GB, free: 8.395 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.5645, allocations: 73.41 kB / 0.6638 GB, free: 8.309 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004042/0.5686, allocations: 2.753 MB / 0.6665 GB, free: 5.539 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002194/0.5688, allocations: 53.7 kB / 0.6665 GB, free: 5.48 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001862/0.5707, allocations: 2.852 MB / 0.6693 GB, free: 2.586 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008836/0.5716, allocations: 0.9174 MB / 0.6702 GB, free: 1.656 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00169/0.5733, allocations: 1.116 MB / 0.6713 GB, free: 0.5273 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.404e-05/0.5734, allocations: 301.1 kB / 0.6716 GB, free: 236 kB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/0.5767, allocations: 2.252 MB / 0.6738 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005257/0.5819, allocations: 5.336 MB / 0.679 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00948/0.5914, allocations: 8.327 MB / 0.6871 GB, free: 13.29 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.594e-05/0.5915, allocations: 32 kB / 0.6872 GB, free: 13.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01399/0.6055, allocations: 8.276 MB / 0.6952 GB, free: 4.965 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.513e-05/0.6056, allocations: 52 kB / 0.6953 GB, free: 4.914 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001339/0.6057, allocations: 108.1 kB / 0.6954 GB, free: 4.809 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003476/0.6092, allocations: 1.013 MB / 0.6964 GB, free: 3.789 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00372/0.613, allocations: 1.279 MB / 0.6976 GB, free: 2.508 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/0.6158, allocations: 2.601 MB / 0.7002 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002961/0.6188, allocations: 307.7 kB / 0.7005 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005309/0.6193, allocations: 320 kB / 0.7008 GB, free: 15.15 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.003154/0.6225, allocations: 2.193 MB / 0.7029 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004506/0.6229, allocations: 272.4 kB / 0.7032 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008477/0.6314, allocations: 4.798 MB / 0.7079 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/0.6314, allocations: 11.95 kB / 0.7079 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.6314, allocations: 0 / 0.7079 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004301/0.6319, allocations: 309.5 kB / 0.7082 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003988/0.6323, allocations: 39.94 kB / 0.7082 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.6333, allocations: 127.8 kB / 0.7083 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002818/0.6336, allocations: 121.8 kB / 0.7084 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00619/0.6398, allocations: 4.046 MB / 0.7124 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.2918/0.9316, allocations: 6.299 MB / 0.7185 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002083/0.9337, allocations: 1.733 MB / 0.7202 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002361/0.9361, allocations: 1.675 MB / 0.7219 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of Backend: time 5.41e-07/0.9361, allocations: 0 / 0.7219 GB, free: 159.9 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.008342/0.9445, allocations: 4.63 MB / 0.7264 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01178/0.9563, allocations: 9.426 MB / 0.7356 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of Templates: time 0.05887/1.015, allocations: 42.79 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