Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 101.4 kB / 16.94 MB, free: 6.445 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.001106/0.001106, allocations: 184.8 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004911/0.0004911, allocations: 11.12 kB / 280.7 MB, free: 3.77 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1127, allocations: 47.59 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01804/0.1308, allocations: 15.26 MB / 343.6 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.1428, allocations: 4.797 MB / 348.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003499/0.1463, allocations: 71.81 kB / 348.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002565/0.1489, allocations: 0.7075 MB / 349.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008407/0.1574, allocations: 2.412 MB / 351.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001567/0.159, allocations: 371.3 kB / 351.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003316/0.1623, allocations: 1.505 MB / 353.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003626/0.1659, allocations: 1.85 MB / 355.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.1674, allocations: 0.6268 MB / 355.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.1691, allocations: 0.8839 MB / 356.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004939/0.1696, allocations: 87.98 kB / 356.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001986/0.1716, allocations: 0.8347 MB / 357.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001236/0.1728, allocations: 0.9468 MB / 358.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005892/0.1734, allocations: 0.5156 MB / 359.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003699/0.1771, allocations: 3.293 MB / 362.5 MB, free: 1.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1772, allocations: 0 / 362.5 MB, free: 1.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1772, allocations: 0 / 362.5 MB, free: 1.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001114/0.1773, allocations: 4 kB / 362.5 MB, free: 1.801 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005488/0.1828, allocations: 2.591 MB / 365.1 MB, free: 15.15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.1828, allocations: 12.02 kB / 365.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007637/0.1905, allocations: 2.083 MB / 367.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004674/0.1952, allocations: 1.616 MB / 368.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.1954, allocations: 127.3 kB / 368.9 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009377/0.1963, allocations: 255.7 kB / 369.2 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/0.2091, allocations: 6.699 MB / 375.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.2093, allocations: 31.66 kB / 375.9 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006382/0.21, allocations: 87.89 kB / 376 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002385/0.2124, allocations: 1.363 MB / 377.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2136/0.426, allocations: 6.06 MB / 383.4 MB, free: 48.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03137/0.4574, allocations: 25.68 MB / 409.1 MB, free: 30.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007005/0.4645, allocations: 2.669 MB / 411.7 MB, free: 28.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006553/0.4711, allocations: 3.917 MB / 415.7 MB, free: 25.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.4711, allocations: 43.12 kB / 415.7 MB, free: 25.22 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.747e-06/0.4711, allocations: 4 kB / 415.7 MB, free: 25.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02519/0.4963, allocations: 10.65 MB / 426.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009693/0.4973, allocations: 1.588 MB / 427.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003801/0.5012, allocations: 2.847 MB / 430.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002098/0.5014, allocations: 42.64 kB / 430.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001173/0.5026, allocations: 2.084 MB / 432.9 MB, free: 7.605 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005788/0.5032, allocations: 0.5019 MB / 433.4 MB, free: 7.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003396/0.5035, allocations: 89.09 kB / 433.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002669/0.5038, allocations: 0.5039 MB / 434 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002263/0.5061, allocations: 1.656 MB / 435.7 MB, free: 4.844 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003572/0.5097, allocations: 4.421 MB / 440.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003933/0.5136, allocations: 2.657 MB / 442.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-05/0.5137, allocations: 28 kB / 442.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01996/0.5337, allocations: 7.989 MB / 450.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.5338, allocations: 48 kB / 450.8 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01161/0.5455, allocations: 3.51 MB / 454.3 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/0.5575, allocations: 2.597 MB / 456.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003452/0.5609, allocations: 1.009 MB / 457.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01538/0.5764, allocations: 9.31 MB / 467.2 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004377/0.5808, allocations: 335.5 kB / 467.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009124/0.5817, allocations: 284 kB / 467.8 MB, free: 2.957 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * 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): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003191/0.5849, allocations: 1.42 MB / 469.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006406/0.5856, allocations: 241 kB / 469.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006775/0.5924, allocations: 2.839 MB / 472.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005786/0.5982, allocations: 2.505 MB / 474.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/0.5982, allocations: 4 kB / 474.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/0.5982, allocations: 3.984 kB / 474.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01518/0.6134, allocations: 6.889 MB / 481.7 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-05/0.6135, allocations: 4.469 kB / 481.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.6146, allocations: 180.7 kB / 481.9 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005083/0.6197, allocations: 1.433 MB / 483.3 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002262/0.6199, allocations: 33.31 kB / 483.4 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/0.6306, allocations: 7.539 MB / 490.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001084/0.6317, allocations: 1.466 MB / 492.4 MB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009313/0.641, allocations: 4.96 MB / 497.3 MB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009416/0.642, allocations: 301.9 kB / 497.6 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005801/0.6426, allocations: 29.52 kB / 497.7 MB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/0.6442, allocations: 116.1 kB / 497.8 MB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002922/0.6445, allocations: 76.44 kB / 497.9 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/0.6446, allocations: 45.23 kB / 497.9 MB, free: 4.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003381/0.648, allocations: 1.776 MB / 499.7 MB, free: 2.484 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.648, allocations: 0 / 499.7 MB, free: 2.484 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004719/0.6528, allocations: 0.8062 MB / 0.4888 GB, free: 1.688 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[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 (83): * Single equations (assignments): 77 * Array equations: 3 * 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): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006813/0.6535, allocations: 182.7 kB / 0.4889 GB, free: 1.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008374/0.6619, allocations: 4.386 MB / 0.4932 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.6619, allocations: 3.938 kB / 0.4932 GB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003357/0.6653, allocations: 1.714 MB / 0.4949 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/0.6669, allocations: 259.6 kB / 0.4951 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.68, allocations: 7.67 MB / 0.5026 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003857/0.6839, allocations: 2.356 MB / 0.5049 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003946/0.6879, allocations: 1.408 MB / 0.5063 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007074/0.6886, allocations: 171.3 kB / 0.5065 GB, free: 15.38 MB / 414.1 MB Notification: Performance of SimCode: time 1.283e-06/0.6886, allocations: 0 / 0.5065 GB, free: 15.38 MB / 414.1 MB Notification: Performance of Templates: time 0.2312/0.9198, allocations: 29.34 MB / 0.5351 GB, free: 129.5 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches