Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 110.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 183 kB / 19.39 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2108/0.2108, allocations: 44.18 MB / 337.4 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 59.91 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3486, allocations: 60.82 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.01426/0.3629, allocations: 12.79 MB / 0.5321 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.3732, allocations: 4.072 MB / 0.5361 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00319/0.3764, allocations: 69.53 kB / 0.5361 GB, free: 7.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004533/0.381, allocations: 1.848 MB / 0.5379 GB, free: 6.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006189/0.3872, allocations: 1.866 MB / 0.5397 GB, free: 4.773 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001914/0.3892, allocations: 0.5007 MB / 0.5402 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007174/0.3963, allocations: 3.81 MB / 0.544 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005291/0.4017, allocations: 2.858 MB / 0.5467 GB, free: 124 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002762/0.4045, allocations: 1.374 MB / 0.5481 GB, free: 14.74 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003087/0.4076, allocations: 1.892 MB / 0.5499 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001043/0.4086, allocations: 288 kB / 0.5502 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003077/0.4117, allocations: 1.139 MB / 0.5513 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002063/0.4138, allocations: 1.812 MB / 0.5531 GB, free: 9.605 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002114/0.4159, allocations: 2.139 MB / 0.5552 GB, free: 7.453 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0085/0.4245, allocations: 7.163 MB / 0.5622 GB, free: 268 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.4245, allocations: 0 / 0.5622 GB, free: 268 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4245, allocations: 0 / 0.5622 GB, free: 268 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001855/0.4247, allocations: 0 / 0.5622 GB, free: 268 kB / 414.1 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.01131/0.436, allocations: 4.926 MB / 0.567 GB, free: 11.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.4361, allocations: 8.031 kB / 0.567 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01116/0.4473, allocations: 3.149 MB / 0.5701 GB, free: 8.09 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005739/0.453, allocations: 2.107 MB / 0.5721 GB, free: 5.934 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.4533, allocations: 217.8 kB / 0.5723 GB, free: 5.719 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00118/0.4545, allocations: 295.9 kB / 0.5726 GB, free: 5.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/0.4746, allocations: 11.58 MB / 0.5839 GB, free: 9.414 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000134/0.4748, allocations: 23.81 kB / 0.584 GB, free: 9.391 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001049/0.4758, allocations: 135.8 kB / 0.5841 GB, free: 9.258 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004367/0.4802, allocations: 2.64 MB / 0.5867 GB, free: 6.609 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02153/0.5018, allocations: 10.78 MB / 0.5972 GB, free: 11.81 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06213/0.5639, allocations: 36.06 MB / 0.6324 GB, free: 6.922 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009822/0.5738, allocations: 4.587 MB / 0.6369 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003246/0.5771, allocations: 2.205 MB / 0.639 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001832/0.5789, allocations: 1.319 MB / 0.6403 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.579, allocations: 48.56 kB / 0.6404 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=235): time 6.001e-06/0.579, allocations: 0 / 0.6404 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=247): time 0.05228/0.6313, allocations: 13.37 MB / 0.6534 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.6314, allocations: 73.41 kB / 0.6535 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004796/0.6362, allocations: 2.771 MB / 0.6562 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003558/0.6366, allocations: 65.61 kB / 0.6563 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002293/0.6389, allocations: 3.006 MB / 0.6592 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001273/0.6402, allocations: 0.9494 MB / 0.6601 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002415/0.6426, allocations: 1.124 MB / 0.6612 GB, free: 8.816 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.6427, allocations: 309.1 kB / 0.6615 GB, free: 8.512 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/0.6464, allocations: 2.248 MB / 0.6637 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005912/0.6523, allocations: 5.344 MB / 0.6689 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/0.663, allocations: 8.323 MB / 0.6771 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001114/0.6632, allocations: 32 kB / 0.6771 GB, free: 5.543 MB / 0.5294 GB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01748/0.6807, allocations: 8.293 MB / 0.6852 GB, free: 13.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.6808, allocations: 48 kB / 0.6852 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001872/0.681, allocations: 111.9 kB / 0.6853 GB, free: 13.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003949/0.685, allocations: 1.013 MB / 0.6863 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004753/0.6898, allocations: 1.283 MB / 0.6876 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003329/0.6931, allocations: 2.604 MB / 0.6901 GB, free: 8.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004044/0.6972, allocations: 307.8 kB / 0.6904 GB, free: 7.719 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009129/0.6981, allocations: 324 kB / 0.6907 GB, free: 7.402 MB / 0.545 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.arrowLine.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.004163/0.7023, allocations: 2.224 MB / 0.6929 GB, free: 5.168 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006501/0.703, allocations: 294 kB / 0.6932 GB, free: 4.879 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009629/0.7126, allocations: 4.791 MB / 0.6979 GB, free: 52 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.622e-05/0.7127, allocations: 11.95 kB / 0.6979 GB, free: 40 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.7127, allocations: 4 kB / 0.6979 GB, free: 36 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006421/0.7133, allocations: 319.2 kB / 0.6982 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000581/0.7139, allocations: 39.98 kB / 0.6982 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.7152, allocations: 123.8 kB / 0.6983 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003612/0.7156, allocations: 117.8 kB / 0.6984 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00702/0.7226, allocations: 4.05 MB / 0.7024 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008825/0.7315, allocations: 6.304 MB / 0.7086 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002323/0.7338, allocations: 1.737 MB / 0.7103 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003408/0.7372, allocations: 1.677 MB / 0.7119 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of Backend: time 5.91e-07/0.7373, allocations: 4 kB / 0.7119 GB, free: 1.605 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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.01136/0.7486, allocations: 4.635 MB / 0.7164 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of SimCode: time 0.01965/0.7683, allocations: 9.693 MB / 0.7259 GB, free: 3.18 MB / 0.5762 GB Notification: Performance of Templates: time 0.3128/1.081, allocations: 43.11 MB / 0.768 GB, free: 166.5 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches