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.001211/0.001211, allocations: 115.3 kB / 17.29 MB, free: 6.324 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.001149/0.001149, allocations: 197.3 kB / 18.21 MB, free: 5.406 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.378/1.378, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 43.47 kB / 300.8 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1188, allocations: 49.46 MB / 350.2 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2515/0.3704, allocations: 34.68 MB / 384.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01976/0.3902, allocations: 7.791 MB / 392.7 MB, free: 3.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009436/0.3997, allocations: 147.4 kB / 392.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004675/0.4045, allocations: 1.866 MB / 394.7 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005459/0.41, allocations: 1.546 MB / 396.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001874/0.4119, allocations: 0.5721 MB / 396.8 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005769/0.4177, allocations: 3.36 MB / 400.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004811/0.4225, allocations: 2.715 MB / 402.9 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002779/0.4253, allocations: 1.268 MB / 404.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003109/0.4285, allocations: 1.864 MB / 406.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001057/0.4295, allocations: 253 kB / 406.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002803/0.4324, allocations: 1.053 MB / 407.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002306/0.4347, allocations: 1.586 MB / 408.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00345/0.4382, allocations: 1.852 MB / 410.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00618/0.4444, allocations: 4.584 MB / 415.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.4444, allocations: 3.938 kB / 415.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.4444, allocations: 0 / 415.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002537/0.4447, allocations: 0 / 415.4 MB, free: 3.664 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.0101/0.4548, allocations: 4.018 MB / 419.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4549, allocations: 11.89 kB / 419.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005939/0.4608, allocations: 1.77 MB / 421.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003666/0.4645, allocations: 1.911 MB / 423.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.4647, allocations: 200.8 kB / 423.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004459/0.4651, allocations: 251.7 kB / 423.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/0.4785, allocations: 8.435 MB / 432 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.541e-05/0.4787, allocations: 39.59 kB / 432 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003313/0.479, allocations: 123.9 kB / 432.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002614/0.4816, allocations: 1.699 MB / 433.8 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01317/0.4948, allocations: 7.094 MB / 440.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03831/0.5332, allocations: 34.15 MB / 475.1 MB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007148/0.5404, allocations: 3.279 MB / 478.4 MB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/0.5422, allocations: 1.458 MB / 479.8 MB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006431/0.5486, allocations: 4.365 MB / 484.2 MB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.5487, allocations: 51.06 kB / 484.2 MB, free: 12.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 3.837e-06/0.5487, allocations: 4 kB / 484.2 MB, free: 12.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.0278/0.5765, allocations: 11.5 MB / 495.7 MB, free: 0.9727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.5766, allocations: 141.3 kB / 495.9 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004808/0.5815, allocations: 3.721 MB / 499.6 MB, free: 13.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002678/0.5818, allocations: 45.7 kB / 499.6 MB, free: 13.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0018/0.5836, allocations: 2.756 MB / 0.4906 GB, free: 10.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005831/0.5842, allocations: 0.5132 MB / 0.4911 GB, free: 9.723 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/0.5854, allocations: 1.079 MB / 0.4922 GB, free: 8.633 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.5855, allocations: 305.1 kB / 0.4925 GB, free: 8.332 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002302/0.5879, allocations: 1.705 MB / 0.4941 GB, free: 6.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004298/0.5922, allocations: 5.131 MB / 0.4991 GB, free: 15.76 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007674/0.5998, allocations: 7.419 MB / 0.5064 GB, free: 6.633 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.684e-05/0.6, allocations: 36 kB / 0.5064 GB, free: 6.598 MB / 430.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01118/0.6111, allocations: 6.721 MB / 0.513 GB, free: 15.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/0.6112, allocations: 67.91 kB / 0.513 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/0.6114, allocations: 124 kB / 0.5132 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005987/0.612, allocations: 316.7 kB / 0.5135 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003718/0.6157, allocations: 1.244 MB / 0.5147 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/0.6184, allocations: 2.493 MB / 0.5171 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003862/0.6223, allocations: 287.5 kB / 0.5174 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005531/0.6228, allocations: 340 kB / 0.5177 GB, free: 10.88 MB / 446.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.00264/0.6255, allocations: 1.779 MB / 0.5195 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005244/0.626, allocations: 308 kB / 0.5197 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004348/0.6304, allocations: 2.37 MB / 0.5221 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.69e-05/0.6304, allocations: 16 kB / 0.5221 GB, free: 6.375 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.6304, allocations: 4.125 kB / 0.5221 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.6304, allocations: 7.984 kB / 0.5221 GB, free: 6.363 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01097/0.6414, allocations: 5.934 MB / 0.5279 GB, free: 368 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.6415, allocations: 7.938 kB / 0.5279 GB, free: 360 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007907/0.6423, allocations: 167.7 kB / 0.528 GB, free: 192 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2171/0.8594, allocations: 0.7145 MB / 0.5287 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002439/0.8596, allocations: 21.86 kB / 0.5288 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006143/0.8658, allocations: 4.805 MB / 0.5335 GB, free: 146.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.8658, allocations: 2.25 kB / 0.5335 GB, free: 146.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007974/0.8738, allocations: 4.324 MB / 0.5377 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/0.875, allocations: 365.3 kB / 0.538 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003406/0.8753, allocations: 25.02 kB / 0.5381 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.8764, allocations: 63.61 kB / 0.5381 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.8766, allocations: 68.03 kB / 0.5382 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.8767, allocations: 40.81 kB / 0.5382 GB, free: 144.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004087/0.8808, allocations: 2.321 MB / 0.5405 GB, free: 143.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8808, allocations: 0 / 0.5405 GB, free: 143.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004938/0.8858, allocations: 0.8203 MB / 0.5413 GB, free: 143.6 MB / 446.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.0004325/0.8862, allocations: 159 kB / 0.5414 GB, free: 143.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007453/0.8937, allocations: 4.422 MB / 0.5458 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.8937, allocations: 0 / 0.5458 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.8952, allocations: 1.107 MB / 0.5468 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002469/0.8977, allocations: 379.7 kB / 0.5472 GB, free: 141.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.9096, allocations: 9.338 MB / 0.5563 GB, free: 136.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002282/0.912, allocations: 2.781 MB / 0.559 GB, free: 135.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008711/0.9129, allocations: 250.4 kB / 0.5593 GB, free: 135.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.9129, allocations: 0 / 0.5593 GB, free: 135.3 MB / 446.1 MB Notification: Performance of Templates: time 0.07499/0.9879, allocations: 63.91 MB / 0.6217 GB, free: 74.05 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/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