Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit1.r_rel_a_1|freeMotionScalarInit1.r_rel_a_2|freeMotionScalarInit1.r_rel_a_3|freeMotionScalarInit1.v_rel_a_1|freeMotionScalarInit1.v_rel_a_2|freeMotionScalarInit1.v_rel_a_3|freeMotionScalarInit2.angle_1|freeMotionScalarInit2.angle_2|freeMotionScalarInit2.angle_3|freeMotionScalarInit2.angle_d_1|freeMotionScalarInit2.angle_d_2|freeMotionScalarInit2.angle_d_3",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit1.r_rel_a_1|freeMotionScalarInit1.r_rel_a_2|freeMotionScalarInit1.r_rel_a_3|freeMotionScalarInit1.v_rel_a_1|freeMotionScalarInit1.v_rel_a_2|freeMotionScalarInit1.v_rel_a_3|freeMotionScalarInit2.angle_1|freeMotionScalarInit2.angle_2|freeMotionScalarInit2.angle_3|freeMotionScalarInit2.angle_d_1|freeMotionScalarInit2.angle_d_2|freeMotionScalarInit2.angle_d_3",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008747/0.0008746, allocations: 179 kB / 18.09 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 223.3 MB / 242.1 MB, free: 11.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009532/0.0009535, allocations: 98.44 kB / 293.3 MB, free: 10.74 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3129/0.3129, allocations: 44.15 MB / 388.5 MB, free: 38.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.0003921, allocations: 12 kB / 461.1 MB, free: 1.285 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3243, allocations: 61.87 MB / 0.5107 GB, free: 38.35 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1369/0.4613, allocations: 105.7 MB / 0.614 GB, free: 5.293 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.4616, allocations: 83.95 kB / 0.614 GB, free: 5.215 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.532/0.9936, allocations: 93.34 MB / 0.7052 GB, free: 97.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.9936, allocations: 0 / 0.7052 GB, free: 97.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002808/0.9939, allocations: 85.12 kB / 0.7053 GB, free: 97.2 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.02136/1.015, allocations: 4.452 MB / 0.7096 GB, free: 95.28 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/1.015, allocations: 8.719 kB / 0.7096 GB, free: 95.28 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0161/1.031, allocations: 3.538 MB / 0.7131 GB, free: 94.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01091/1.042, allocations: 3.57 MB / 0.7166 GB, free: 94.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005938/1.043, allocations: 349.7 kB / 0.7169 GB, free: 94.28 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003115/1.046, allocations: 456.2 kB / 0.7173 GB, free: 94.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03177/1.078, allocations: 11.15 MB / 0.7282 GB, free: 91.14 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004021/1.078, allocations: 27.03 kB / 0.7283 GB, free: 91.13 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003051/1.081, allocations: 209.4 kB / 0.7285 GB, free: 91.01 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001592/1.083, allocations: 1.204 MB / 0.7296 GB, free: 90.79 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01986/1.103, allocations: 10.61 MB / 0.74 GB, free: 87.49 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05213/1.155, allocations: 37.57 MB / 0.7767 GB, free: 64.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006618/1.162, allocations: 4.28 MB / 0.7809 GB, free: 60.84 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002225/1.164, allocations: 2.113 MB / 0.7829 GB, free: 58.97 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008566/1.165, allocations: 1.315 MB / 0.7842 GB, free: 57.54 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/1.165, allocations: 52.56 kB / 0.7843 GB, free: 57.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 6.001e-06/1.165, allocations: 0 / 0.7843 GB, free: 57.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=256): time 0.03004/1.195, allocations: 13.43 MB / 0.7974 GB, free: 46.14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/1.195, allocations: 73.41 kB / 0.7974 GB, free: 46.05 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/1.199, allocations: 2.908 MB / 0.8003 GB, free: 43.13 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000212/1.199, allocations: 57.7 kB / 0.8003 GB, free: 43.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/1.2, allocations: 3.034 MB / 0.8033 GB, free: 40.03 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000628/1.201, allocations: 0.9397 MB / 0.8042 GB, free: 39.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/1.201, allocations: 116 kB / 0.8043 GB, free: 38.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002331/1.201, allocations: 0.558 MB / 0.8049 GB, free: 38.42 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002556/1.204, allocations: 2.311 MB / 0.8071 GB, free: 36.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003993/1.208, allocations: 5.529 MB / 0.8125 GB, free: 28.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007465/1.215, allocations: 8.636 MB / 0.821 GB, free: 18.77 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.304e-05/1.215, allocations: 32 kB / 0.821 GB, free: 18.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=774) (initialization): time 0.01371/1.229, allocations: 8.541 MB / 0.8293 GB, free: 10.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.429e-05/1.229, allocations: 55.94 kB / 0.8294 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/1.229, allocations: 112 kB / 0.8295 GB, free: 10.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003109/1.232, allocations: 1.045 MB / 0.8305 GB, free: 8.957 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004194/1.236, allocations: 1.33 MB / 0.8318 GB, free: 7.625 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/1.239, allocations: 2.466 MB / 0.8342 GB, free: 5.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004057/1.243, allocations: 315.8 kB / 0.8345 GB, free: 4.711 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009858/1.244, allocations: 340 kB / 0.8348 GB, free: 4.379 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 29 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[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],freeMotionScalarInit1.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit1.arrow.headAtOrigin,freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (721): * Single equations (assignments): 712 * 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 prepare postOptimizeDAE: time 0.004081/1.248, allocations: 2.313 MB / 0.8371 GB, free: 2.059 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004683/1.248, allocations: 296.2 kB / 0.8374 GB, free: 1.766 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008407/1.257, allocations: 4.963 MB / 0.8422 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.304e-05/1.257, allocations: 51.66 kB / 0.8423 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/1.257, allocations: 3.562 kB / 0.8423 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-05/1.257, allocations: 7.969 kB / 0.8423 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02135/1.278, allocations: 11.56 MB / 0.8536 GB, free: 1.004 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/1.278, allocations: 4 kB / 0.8536 GB, free: 1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/1.28, allocations: 408.3 kB / 0.854 GB, free: 0.6016 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003044/1.283, allocations: 0.9111 MB / 0.8549 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002256/1.283, allocations: 61.66 kB / 0.8549 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002397/1.286, allocations: 2.272 MB / 0.8571 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/1.286, allocations: 15.88 kB / 0.8572 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0113/1.297, allocations: 7.359 MB / 0.8643 GB, free: 5.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009273/1.298, allocations: 333.2 kB / 0.8647 GB, free: 5.332 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006911/1.299, allocations: 47.88 kB / 0.8647 GB, free: 5.289 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/1.3, allocations: 143.9 kB / 0.8648 GB, free: 5.148 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003793/1.301, allocations: 157.5 kB / 0.865 GB, free: 4.992 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/1.301, allocations: 71.98 kB / 0.8651 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003538/1.304, allocations: 1.759 MB / 0.8668 GB, free: 3.16 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.11e-07/1.304, allocations: 0 / 0.8668 GB, free: 3.16 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004901/1.309, allocations: 1.019 MB / 0.8678 GB, free: 2.145 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_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 (206): * Single equations (assignments): 197 * 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.0005493/1.31, allocations: 208.1 kB / 0.868 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009797/1.32, allocations: 6.081 MB / 0.8739 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/1.32, allocations: 0 / 0.8739 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004236/1.324, allocations: 2.542 MB / 0.8764 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005519/1.329, allocations: 497.7 kB / 0.8769 GB, free: 8.758 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2911/1.621, allocations: 13.17 MB / 0.8897 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005661/1.626, allocations: 3.586 MB / 0.8932 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005297/1.632, allocations: 2.103 MB / 0.8953 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007652/1.632, allocations: 235 kB / 0.8955 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.142e-06/1.632, allocations: 2.75 kB / 0.8955 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.07531/1.708, allocations: 32.98 MB / 0.9277 GB, free: 126.4 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit5/FreeMotionScalarInit5.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches