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.001047/0.001047, allocations: 114.4 kB / 16.63 MB, free: 6.812 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.0009971/0.0009971, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.301/1.301, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 50.05 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1277, allocations: 49.44 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1946/0.3222, allocations: 34.68 MB / 384.3 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01453/0.3368, allocations: 7.796 MB / 392 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006519/0.3434, allocations: 150.9 kB / 392.2 MB, free: 3.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003507/0.3469, allocations: 1.863 MB / 394.1 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004078/0.351, allocations: 1.545 MB / 395.6 MB, free: 1.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.3526, allocations: 0.5753 MB / 396.2 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004292/0.3569, allocations: 3.362 MB / 399.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003274/0.3602, allocations: 2.717 MB / 402.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.3621, allocations: 1.256 MB / 403.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002294/0.3644, allocations: 1.871 MB / 405.4 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004901/0.3649, allocations: 258 kB / 405.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001794/0.3667, allocations: 1.055 MB / 406.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.3681, allocations: 1.582 MB / 408.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001791/0.3699, allocations: 1.852 MB / 410.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00555/0.3754, allocations: 5.673 MB / 415.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3755, allocations: 0 / 415.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3755, allocations: 0 / 415.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001007/0.3756, allocations: 0 / 415.8 MB, free: 2.562 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.006468/0.3821, allocations: 4.018 MB / 419.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3821, allocations: 15.89 kB / 419.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005808/0.3879, allocations: 1.774 MB / 421.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002841/0.3908, allocations: 1.912 MB / 423.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.3909, allocations: 196.8 kB / 423.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004209/0.3913, allocations: 251.8 kB / 424 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/0.4024, allocations: 8.427 MB / 432.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.802e-05/0.4024, allocations: 43.53 kB / 432.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003096/0.4028, allocations: 127.9 kB / 432.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002562/0.4053, allocations: 1.692 MB / 434.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01163/0.417, allocations: 7.102 MB / 441.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03624/0.4532, allocations: 34.15 MB / 475.5 MB, free: 5.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007043/0.4603, allocations: 3.273 MB / 478.8 MB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/0.4621, allocations: 1.462 MB / 480.2 MB, free: 156 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005658/0.4678, allocations: 4.361 MB / 484.6 MB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.4678, allocations: 55 kB / 484.6 MB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 3.016e-06/0.4678, allocations: 0 / 484.6 MB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02848/0.4963, allocations: 11.52 MB / 496.2 MB, free: 15.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.222e-05/0.4964, allocations: 141.2 kB / 496.3 MB, free: 15.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004924/0.5013, allocations: 3.717 MB / 0.4883 GB, free: 11.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.5016, allocations: 45.7 kB / 0.4883 GB, free: 11.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/0.5033, allocations: 2.744 MB / 0.491 GB, free: 9.145 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005144/0.5039, allocations: 0.5288 MB / 0.4915 GB, free: 8.609 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001225/0.5051, allocations: 1.079 MB / 0.4926 GB, free: 7.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.726e-05/0.5052, allocations: 309.1 kB / 0.4929 GB, free: 7.215 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002284/0.5075, allocations: 1.701 MB / 0.4945 GB, free: 5.508 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00431/0.5118, allocations: 5.127 MB / 0.4996 GB, free: 14.65 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007569/0.5194, allocations: 7.42 MB / 0.5068 GB, free: 5.523 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.958e-05/0.5195, allocations: 36 kB / 0.5068 GB, free: 5.488 MB / 430.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.009995/0.5295, allocations: 6.719 MB / 0.5134 GB, free: 14.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.965e-05/0.5296, allocations: 58.34 kB / 0.5135 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/0.5297, allocations: 120 kB / 0.5136 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005919/0.5303, allocations: 321.4 kB / 0.5139 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/0.5338, allocations: 1.248 MB / 0.5151 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00249/0.5363, allocations: 2.493 MB / 0.5175 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003262/0.5395, allocations: 287.5 kB / 0.5178 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004164/0.54, allocations: 332 kB / 0.5181 GB, free: 9.773 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.002458/0.5424, allocations: 1.787 MB / 0.5199 GB, free: 7.973 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004908/0.5429, allocations: 312 kB / 0.5202 GB, free: 7.664 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004684/0.5476, allocations: 2.363 MB / 0.5225 GB, free: 5.285 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.346e-05/0.5477, allocations: 23.91 kB / 0.5225 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.5477, allocations: 4 kB / 0.5225 GB, free: 5.262 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.091e-05/0.5478, allocations: 3.984 kB / 0.5225 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1957/0.7435, allocations: 5.918 MB / 0.5283 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/0.7435, allocations: 2.75 kB / 0.5283 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009036/0.7444, allocations: 171.4 kB / 0.5284 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002252/0.7467, allocations: 0.7213 MB / 0.5291 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/0.7468, allocations: 24.41 kB / 0.5292 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005784/0.7526, allocations: 4.806 MB / 0.5339 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.7527, allocations: 9.906 kB / 0.5339 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006775/0.7594, allocations: 4.327 MB / 0.5381 GB, free: 144.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008539/0.7603, allocations: 360.9 kB / 0.5384 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003052/0.7606, allocations: 17.98 kB / 0.5385 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.7616, allocations: 69.14 kB / 0.5385 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.7618, allocations: 68.03 kB / 0.5386 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.912e-05/0.7619, allocations: 40.22 kB / 0.5386 GB, free: 143.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002948/0.7649, allocations: 2.319 MB / 0.5409 GB, free: 143.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7649, allocations: 0 / 0.5409 GB, free: 143.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003701/0.7686, allocations: 0.8214 MB / 0.5417 GB, free: 143.1 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.0003369/0.769, allocations: 161 kB / 0.5418 GB, free: 142.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005744/0.7747, allocations: 4.423 MB / 0.5462 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.7747, allocations: 0 / 0.5462 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.7759, allocations: 1.102 MB / 0.5472 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.7779, allocations: 393.2 kB / 0.5476 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.7884, allocations: 8.937 MB / 0.5563 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002237/0.7907, allocations: 2.781 MB / 0.5591 GB, free: 135 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003651/0.7944, allocations: 1.661 MB / 0.5607 GB, free: 134.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006748/0.795, allocations: 211.4 kB / 0.5609 GB, free: 134.9 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.7951, allocations: 0 / 0.5609 GB, free: 134.9 MB / 446.1 MB Notification: Performance of Templates: time 0.05295/0.848, allocations: 30.96 MB / 0.5911 GB, free: 104.7 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/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