Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 111.7 kB / 17.06 MB, free: 6 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.001093/0.001094, allocations: 194.9 kB / 18 MB, free: 5.078 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.359/1.359, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008987/0.0008987, allocations: 43.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2612, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01083/0.272, allocations: 10.22 MB / 410.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006951/0.279, allocations: 3.775 MB / 414.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.2801, allocations: 59.81 kB / 414.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003327/0.2834, allocations: 1.958 MB / 416.7 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.2867, allocations: 1.696 MB / 418.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.2879, allocations: 0.6121 MB / 419 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003879/0.2918, allocations: 3.326 MB / 422.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002733/0.2946, allocations: 2.573 MB / 424.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001593/0.2962, allocations: 1.242 MB / 426.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001816/0.298, allocations: 1.666 MB / 427.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00038/0.2984, allocations: 256 kB / 428.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001641/0.3, allocations: 1.041 MB / 429.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001231/0.3013, allocations: 1.574 MB / 430.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001517/0.3028, allocations: 1.825 MB / 432.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005195/0.308, allocations: 5.823 MB / 438.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.308, allocations: 0 / 438.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3081, allocations: 4 kB / 438.4 MB, free: 3.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.76e-05/0.3081, allocations: 0 / 438.4 MB, free: 3.031 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.006689/0.3148, allocations: 4.014 MB / 442.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.3149, allocations: 19.83 kB / 442.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006198/0.3211, allocations: 1.774 MB / 444.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00384/0.325, allocations: 1.943 MB / 446.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.3251, allocations: 188.8 kB / 446.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004115/0.3255, allocations: 263.8 kB / 446.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01241/0.3379, allocations: 8.431 MB / 455 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.014e-05/0.3381, allocations: 43.59 kB / 455 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003295/0.3384, allocations: 127.9 kB / 455.2 MB, free: 1.438 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002784/0.3412, allocations: 1.692 MB / 456.9 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01306/0.3543, allocations: 7.106 MB / 464 MB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03962/0.3939, allocations: 34.01 MB / 498 MB, free: 5.625 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007665/0.4016, allocations: 3.28 MB / 0.4895 GB, free: 2.191 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001868/0.4035, allocations: 1.468 MB / 0.4909 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005893/0.4094, allocations: 4.365 MB / 0.4952 GB, free: 12.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.4095, allocations: 51.06 kB / 0.4952 GB, free: 12.08 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 3.446e-06/0.4095, allocations: 0 / 0.4952 GB, free: 12.08 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02864/0.4382, allocations: 11.51 MB / 0.5065 GB, free: 432 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.4383, allocations: 145.2 kB / 0.5066 GB, free: 256 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004791/0.4431, allocations: 3.721 MB / 0.5103 GB, free: 12.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/0.4433, allocations: 45.61 kB / 0.5103 GB, free: 12.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001718/0.445, allocations: 2.748 MB / 0.513 GB, free: 9.695 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005284/0.4456, allocations: 0.5209 MB / 0.5135 GB, free: 9.168 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001206/0.4468, allocations: 1.079 MB / 0.5145 GB, free: 8.078 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.37e-05/0.4469, allocations: 301.1 kB / 0.5148 GB, free: 7.781 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002297/0.4492, allocations: 1.705 MB / 0.5165 GB, free: 6.07 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00455/0.4537, allocations: 5.139 MB / 0.5215 GB, free: 15.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007572/0.4613, allocations: 7.412 MB / 0.5288 GB, free: 6.086 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.15e-05/0.4614, allocations: 40 kB / 0.5288 GB, free: 6.047 MB / 462.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.2214/0.6828, allocations: 6.718 MB / 0.5354 GB, free: 124.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001754/0.6831, allocations: 60.27 kB / 0.5354 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003222/0.6834, allocations: 121.2 kB / 0.5355 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.6844, allocations: 322.7 kB / 0.5358 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004435/0.6889, allocations: 1.246 MB / 0.5371 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.6913, allocations: 2.489 MB / 0.5395 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00384/0.6951, allocations: 282 kB / 0.5398 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005826/0.6957, allocations: 333.7 kB / 0.5401 GB, free: 123.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (668): * Single equations (assignments): 664 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002432/0.6981, allocations: 1.801 MB / 0.5418 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004882/0.6986, allocations: 305.4 kB / 0.5421 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004102/0.7028, allocations: 2.36 MB / 0.5444 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/0.7028, allocations: 15.28 kB / 0.5444 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.7028, allocations: 0 / 0.5444 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.7028, allocations: 11.33 kB / 0.5444 GB, free: 122.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009006/0.7118, allocations: 5.907 MB / 0.5502 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/0.7119, allocations: 3.812 kB / 0.5502 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007707/0.7127, allocations: 170.4 kB / 0.5504 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002011/0.7147, allocations: 0.7101 MB / 0.5511 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.87e-05/0.7148, allocations: 21.97 kB / 0.5511 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004848/0.7197, allocations: 4.814 MB / 0.5558 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.7197, allocations: 0 / 0.5558 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00539/0.7251, allocations: 4.325 MB / 0.56 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006194/0.7257, allocations: 363.5 kB / 0.5604 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000313/0.726, allocations: 23.98 kB / 0.5604 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.7271, allocations: 63.86 kB / 0.5605 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.7272, allocations: 72.12 kB / 0.5605 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.879e-05/0.7273, allocations: 43.11 kB / 0.5606 GB, free: 112.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002717/0.7301, allocations: 2.315 MB / 0.5628 GB, free: 110.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7301, allocations: 0 / 0.5628 GB, free: 110.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003459/0.7335, allocations: 0.8215 MB / 0.5636 GB, free: 109.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003187/0.7339, allocations: 163.5 kB / 0.5638 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004616/0.7385, allocations: 4.055 MB / 0.5677 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.7385, allocations: 0 / 0.5677 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.7396, allocations: 1.107 MB / 0.5688 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/0.7416, allocations: 395.7 kB / 0.5692 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009339/0.7509, allocations: 7.251 MB / 0.5763 GB, free: 96.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002009/0.753, allocations: 2.793 MB / 0.579 GB, free: 94.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003006/0.756, allocations: 1.664 MB / 0.5806 GB, free: 92.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005371/0.7565, allocations: 207.4 kB / 0.5808 GB, free: 92.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.603e-06/0.7565, allocations: 0 / 0.5808 GB, free: 92.2 MB / 462.1 MB Notification: Performance of Templates: time 0.04418/0.8007, allocations: 27.9 MB / 0.6081 GB, free: 64.52 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches