Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(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_4.0.0_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_4.0.0_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.001222/0.001222, allocations: 91.33 kB / 16.31 MB, free: 5.621 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.001524/0.001524, allocations: 180.6 kB / 17.21 MB, free: 5.539 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.425/1.425, allocations: 223.3 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002549/0.0002549, allocations: 6.812 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.09797, allocations: 50.43 MB / 351.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01538/0.1134, allocations: 16.11 MB / 367.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.1244, allocations: 4.67 MB / 372 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003508/0.128, allocations: 67.81 kB / 372.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003035/0.131, allocations: 0.7854 MB / 372.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008436/0.1395, allocations: 2.662 MB / 375.5 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001607/0.1411, allocations: 375.4 kB / 375.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005416/0.1466, allocations: 2.855 MB / 378.8 MB, free: 88 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003723/0.1503, allocations: 1.857 MB / 380.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.1523, allocations: 0.7472 MB / 381.4 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.1546, allocations: 1.203 MB / 382.6 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007257/0.1554, allocations: 88 kB / 382.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002235/0.1577, allocations: 0.8698 MB / 383.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001665/0.1593, allocations: 1.021 MB / 384.5 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.1604, allocations: 0.5156 MB / 385.1 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00422/0.1646, allocations: 3.27 MB / 388.3 MB, free: 6.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1647, allocations: 0 / 388.3 MB, free: 6.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1647, allocations: 0 / 388.3 MB, free: 6.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001511/0.1648, allocations: 4 kB / 388.3 MB, free: 6.434 MB / 318.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.005581/0.1704, allocations: 2.567 MB / 390.9 MB, free: 3.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1705, allocations: 8.031 kB / 390.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006354/0.1768, allocations: 1.775 MB / 392.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002693/0.1796, allocations: 1.359 MB / 394 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.921e-05/0.1797, allocations: 131.3 kB / 394.2 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005984/0.1803, allocations: 263.6 kB / 394.4 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01088/0.1912, allocations: 6.656 MB / 401.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.536e-05/0.1913, allocations: 27.72 kB / 401.1 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.1915, allocations: 87.89 kB / 401.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001986/0.1935, allocations: 1.37 MB / 402.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0107/0.2042, allocations: 6.017 MB / 408.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2179/0.4222, allocations: 25.6 MB / 434.2 MB, free: 47.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006706/0.4289, allocations: 2.669 MB / 436.9 MB, free: 46.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001819/0.4308, allocations: 1.036 MB / 437.9 MB, free: 46.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005486/0.4363, allocations: 3.887 MB / 441.8 MB, free: 44.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.4364, allocations: 48.19 kB / 441.8 MB, free: 44.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.416e-06/0.4364, allocations: 0 / 441.8 MB, free: 44.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02252/0.4589, allocations: 10.3 MB / 452.1 MB, free: 42.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008899/0.4598, allocations: 1.59 MB / 453.7 MB, free: 40.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00306/0.4629, allocations: 2.707 MB / 456.4 MB, free: 39.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000232/0.4632, allocations: 46.02 kB / 456.5 MB, free: 39.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.4643, allocations: 2.084 MB / 458.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004956/0.4648, allocations: 0.5086 MB / 459.1 MB, free: 37.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.4649, allocations: 92.12 kB / 459.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.4652, allocations: 0.4959 MB / 459.6 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002312/0.4675, allocations: 1.634 MB / 461.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002997/0.4705, allocations: 4.434 MB / 465.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/0.4734, allocations: 2.645 MB / 468.4 MB, free: 28.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-05/0.4735, allocations: 33.69 kB / 468.4 MB, free: 28.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0155/0.489, allocations: 7.954 MB / 476.3 MB, free: 20.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.26e-05/0.4891, allocations: 48 kB / 476.4 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009003/0.4981, allocations: 3.486 MB / 479.9 MB, free: 16.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009713/0.5078, allocations: 2.601 MB / 482.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003042/0.5109, allocations: 1.01 MB / 483.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.5215, allocations: 8.857 MB / 492.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003653/0.5252, allocations: 332.9 kB / 492.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005133/0.5257, allocations: 289.3 kB / 493 MB, free: 3.301 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 (547): * Single equations (assignments): 539 * 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.002066/0.5278, allocations: 1.421 MB / 494.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000394/0.5282, allocations: 236.9 kB / 494.6 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005884/0.5341, allocations: 2.842 MB / 497.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005522/0.5397, allocations: 2.505 MB / 500 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/0.5397, allocations: 7.984 kB / 500 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/0.5397, allocations: 3.984 kB / 500 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/0.5527, allocations: 6.874 MB / 0.495 GB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.5527, allocations: 480 / 0.495 GB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008034/0.5535, allocations: 179.7 kB / 0.4951 GB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004451/0.558, allocations: 1.428 MB / 0.4965 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/0.5582, allocations: 35.42 kB / 0.4966 GB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009601/0.5678, allocations: 7.317 MB / 0.5037 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009962/0.5688, allocations: 1.456 MB / 0.5051 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008633/0.5775, allocations: 4.843 MB / 0.5099 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007007/0.5782, allocations: 297.9 kB / 0.5101 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004498/0.5787, allocations: 31.98 kB / 0.5102 GB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.5799, allocations: 111.8 kB / 0.5103 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/0.5802, allocations: 85.66 kB / 0.5104 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/0.5803, allocations: 35.98 kB / 0.5104 GB, free: 5.023 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003165/0.5835, allocations: 1.677 MB / 0.512 GB, free: 3.336 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5835, allocations: 4 kB / 0.512 GB, free: 3.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00431/0.5878, allocations: 0.7891 MB / 0.5128 GB, free: 2.547 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.0004403/0.5883, allocations: 167.6 kB / 0.513 GB, free: 2.387 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007877/0.5962, allocations: 4.404 MB / 0.5173 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.5962, allocations: 0 / 0.5173 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003493/0.5997, allocations: 1.726 MB / 0.519 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/0.6023, allocations: 256.3 kB / 0.5192 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.6162, allocations: 7.695 MB / 0.5267 GB, free: 4.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002381/0.6186, allocations: 2.297 MB / 0.529 GB, free: 1.848 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003269/0.6218, allocations: 1.404 MB / 0.5303 GB, free: 448 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004062/0.6223, allocations: 171.4 kB / 0.5305 GB, free: 276 kB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.6223, allocations: 0 / 0.5305 GB, free: 276 kB / 398.1 MB Notification: Performance of Templates: time 0.04966/0.6719, allocations: 28.61 MB / 0.5584 GB, free: 3.758 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches