Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.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_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_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007621/0.0007622, allocations: 89.91 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008788/0.0008789, allocations: 202.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 247.5 MB, free: 9.668 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1952/0.1952, allocations: 46.18 MB / 345.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002716, allocations: 8 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1158, allocations: 63.55 MB / 483.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.2716/0.3875, allocations: 37.04 MB / 0.5086 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01702/0.4045, allocations: 8.357 MB / 0.5167 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006511/0.4111, allocations: 161.5 kB / 0.5169 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001693/0.4128, allocations: 0.5245 MB / 0.5174 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004895/0.4177, allocations: 1.804 MB / 0.5191 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001513/0.4192, allocations: 0.53 MB / 0.5197 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007234/0.4265, allocations: 5.922 MB / 0.5254 GB, free: 8.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006349/0.4329, allocations: 4.734 MB / 0.5301 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001963/0.4349, allocations: 1.148 MB / 0.5312 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002498/0.4374, allocations: 1.966 MB / 0.5331 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005146/0.4379, allocations: 155.8 kB / 0.5333 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002056/0.44, allocations: 1.079 MB / 0.5343 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001359/0.4414, allocations: 1.797 MB / 0.5361 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001664/0.443, allocations: 2.143 MB / 0.5382 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005305/0.4484, allocations: 5.965 MB / 0.544 GB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4484, allocations: 0 / 0.544 GB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4484, allocations: 0 / 0.544 GB, free: 13.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002204/0.4486, allocations: 2.312 kB / 0.544 GB, free: 13.75 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.01039/0.459, allocations: 4.367 MB / 0.5482 GB, free: 10.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.4591, allocations: 8.875 kB / 0.5483 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/0.4704, allocations: 3.268 MB / 0.5515 GB, free: 6.738 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005181/0.4757, allocations: 2.246 MB / 0.5536 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002694/0.476, allocations: 261.6 kB / 0.5539 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001303/0.4773, allocations: 344.4 kB / 0.5542 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02288/0.5002, allocations: 12.19 MB / 0.5661 GB, free: 7.434 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001981/0.5004, allocations: 23.81 kB / 0.5662 GB, free: 7.41 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001002/0.5014, allocations: 160.5 kB / 0.5663 GB, free: 7.301 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004483/0.5059, allocations: 2.634 MB / 0.5689 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02233/0.5283, allocations: 11.23 MB / 0.5798 GB, free: 9.438 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0568/0.5851, allocations: 39.11 MB / 0.618 GB, free: 1.695 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/0.5962, allocations: 4.974 MB / 0.6229 GB, free: 12.48 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003516/0.5997, allocations: 2.374 MB / 0.6252 GB, free: 10.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01075/0.6105, allocations: 6.826 MB / 0.6319 GB, free: 2.918 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.6106, allocations: 48.56 kB / 0.6319 GB, free: 2.859 MB / 478.1 MB Notification: Performance of pre-optimization done (n=226): time 4.408e-06/0.6106, allocations: 0 / 0.6319 GB, free: 2.859 MB / 478.1 MB Notification: Performance of matching and sorting (n=235): time 0.03955/0.6501, allocations: 16.21 MB / 0.6478 GB, free: 2.512 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.6502, allocations: 73.41 kB / 0.6478 GB, free: 2.426 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004799/0.655, allocations: 3.124 MB / 0.6509 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003034/0.6554, allocations: 49.7 kB / 0.6509 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002162/0.6575, allocations: 3.193 MB / 0.654 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001083/0.6586, allocations: 0.88 MB / 0.6549 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000952/0.6596, allocations: 0.526 MB / 0.6554 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.6597, allocations: 305.1 kB / 0.6557 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003849/0.6636, allocations: 2.378 MB / 0.658 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00612/0.6697, allocations: 5.697 MB / 0.6636 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/0.6804, allocations: 8.768 MB / 0.6722 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.746e-05/0.6805, allocations: 32 kB / 0.6722 GB, free: 6.195 MB / 0.5137 GB Notification: Performance of matching and sorting (n=795) (initialization): time 0.01656/0.6971, allocations: 8.849 MB / 0.6808 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.6973, allocations: 59.98 kB / 0.6809 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001574/0.6974, allocations: 116 kB / 0.681 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003584/0.701, allocations: 1.134 MB / 0.6821 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004337/0.7054, allocations: 1.349 MB / 0.6834 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009467/0.7149, allocations: 6.523 MB / 0.6898 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003805/0.7187, allocations: 319.7 kB / 0.6901 GB, free: 3.566 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009085/0.7196, allocations: 348 kB / 0.6904 GB, free: 3.227 MB / 0.5294 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.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,5)} Notification: Performance of prepare postOptimizeDAE: time 0.004329/0.724, allocations: 2.34 MB / 0.6927 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005459/0.7245, allocations: 300.1 kB / 0.693 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007842/0.7324, allocations: 4.392 MB / 0.6973 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.881e-05/0.7325, allocations: 47.94 kB / 0.6973 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.7325, allocations: 0 / 0.6973 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.7325, allocations: 11.95 kB / 0.6973 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01821/0.7507, allocations: 10.32 MB / 0.7074 GB, free: 1.691 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.7508, allocations: 8 kB / 0.7074 GB, free: 1.684 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.7525, allocations: 371.5 kB / 0.7078 GB, free: 1.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002116/0.7546, allocations: 0.6817 MB / 0.7085 GB, free: 0.6289 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002374/0.7548, allocations: 49.81 kB / 0.7085 GB, free: 0.582 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2024/0.9573, allocations: 2.42 MB / 0.7109 GB, free: 189.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.166e-06/0.9573, allocations: 13.47 kB / 0.7109 GB, free: 189.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/0.9678, allocations: 6.729 MB / 0.7174 GB, free: 188.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006929/0.9685, allocations: 344.8 kB / 0.7178 GB, free: 188.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005753/0.9691, allocations: 49.75 kB / 0.7178 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.9706, allocations: 139.1 kB / 0.718 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004643/0.9711, allocations: 127.9 kB / 0.7181 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001867/0.9713, allocations: 65.98 kB / 0.7181 GB, free: 188.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003793/0.9751, allocations: 1.892 MB / 0.72 GB, free: 187.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9751, allocations: 0 / 0.72 GB, free: 187.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004728/0.9799, allocations: 1.036 MB / 0.721 GB, free: 187.4 MB / 0.545 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 (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 {(2,100.0%), (3,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 Backend phase and start with SimCode phase: time 0.0005491/0.9804, allocations: 190.8 kB / 0.7212 GB, free: 187.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009251/0.9897, allocations: 5.924 MB / 0.727 GB, free: 185.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.9897, allocations: 1.469 kB / 0.727 GB, free: 185.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003691/0.9934, allocations: 2.4 MB / 0.7293 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004479/0.9979, allocations: 455.3 kB / 0.7297 GB, free: 184.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01706/1.015, allocations: 14.14 MB / 0.7436 GB, free: 176.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003818/1.019, allocations: 3.637 MB / 0.7471 GB, free: 175.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/1.02, allocations: 281.2 kB / 0.7474 GB, free: 175.1 MB / 0.545 GB Notification: Performance of SimCode: time 6.31e-07/1.02, allocations: 2.406 kB / 0.7474 GB, free: 175.1 MB / 0.545 GB Notification: Performance of Templates: time 0.09847/1.118, allocations: 113.3 MB / 0.858 GB, free: 65.68 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches