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.001502/0.001502, allocations: 113.7 kB / 17.07 MB, free: 5.965 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.001741/0.001741, allocations: 190.8 kB / 18 MB, free: 5.055 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.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009531/0.0009532, allocations: 39.94 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2462, allocations: 49.45 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01142/0.2577, allocations: 10.22 MB / 411 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007013/0.2647, allocations: 3.771 MB / 414.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.266, allocations: 51.88 kB / 414.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003588/0.2697, allocations: 1.954 MB / 416.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003915/0.2736, allocations: 1.66 MB / 418.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.275, allocations: 0.616 MB / 419 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00449/0.2795, allocations: 3.336 MB / 422.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00337/0.2829, allocations: 2.572 MB / 424.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002671/0.2856, allocations: 1.242 MB / 426.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003043/0.2887, allocations: 1.666 MB / 427.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.2897, allocations: 252 kB / 428.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002701/0.2924, allocations: 1.037 MB / 429.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002055/0.2945, allocations: 1.555 MB / 430.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003483/0.298, allocations: 1.833 MB / 432.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009891/0.3079, allocations: 5.851 MB / 438.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.3079, allocations: 0 / 438.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.308, allocations: 0 / 438.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002614/0.3082, allocations: 4 kB / 438.3 MB, free: 3.062 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.01101/0.3192, allocations: 4.121 MB / 442.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.3193, allocations: 11.89 kB / 442.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006573/0.3259, allocations: 1.788 MB / 444.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00399/0.3299, allocations: 1.967 MB / 446.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.33, allocations: 188.8 kB / 446.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004501/0.3305, allocations: 251.9 kB / 446.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01243/0.3429, allocations: 8.435 MB / 455.1 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-05/0.3431, allocations: 39.67 kB / 455.1 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003184/0.3434, allocations: 123.9 kB / 455.3 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002662/0.3461, allocations: 1.695 MB / 457 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/0.3587, allocations: 7.098 MB / 464.1 MB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03776/0.3966, allocations: 34.1 MB / 498.1 MB, free: 5.457 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007066/0.4037, allocations: 3.271 MB / 0.4897 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/0.4054, allocations: 1.468 MB / 0.4911 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006285/0.4117, allocations: 4.378 MB / 0.4954 GB, free: 11.97 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.4118, allocations: 43.12 kB / 0.4954 GB, free: 11.92 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.468e-06/0.4118, allocations: 3.984 kB / 0.4954 GB, free: 11.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02694/0.4388, allocations: 11.7 MB / 0.5069 GB, free: 84 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.815e-05/0.4389, allocations: 141.1 kB / 0.507 GB, free: 15.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00484/0.4437, allocations: 3.726 MB / 0.5106 GB, free: 12.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.444, allocations: 41.7 kB / 0.5107 GB, free: 12.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001706/0.4457, allocations: 2.866 MB / 0.5135 GB, free: 9.254 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004696/0.4462, allocations: 0.5429 MB / 0.514 GB, free: 8.707 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001221/0.4474, allocations: 1.088 MB / 0.5151 GB, free: 7.609 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.4475, allocations: 305.1 kB / 0.5153 GB, free: 7.309 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002253/0.4498, allocations: 1.709 MB / 0.517 GB, free: 5.594 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004274/0.454, allocations: 5.128 MB / 0.522 GB, free: 14.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007325/0.4614, allocations: 7.414 MB / 0.5293 GB, free: 5.613 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.22e-05/0.4615, allocations: 36 kB / 0.5293 GB, free: 5.578 MB / 462.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.2052/0.6666, allocations: 6.737 MB / 0.5359 GB, free: 124.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001834/0.6669, allocations: 57.25 kB / 0.5359 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003178/0.6672, allocations: 121.7 kB / 0.536 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009281/0.6681, allocations: 317.7 kB / 0.5363 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003679/0.6718, allocations: 1.251 MB / 0.5376 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/0.674, allocations: 2.489 MB / 0.54 GB, free: 123.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003526/0.6775, allocations: 289.5 kB / 0.5403 GB, free: 123.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006922/0.6782, allocations: 338.2 kB / 0.5406 GB, free: 123.5 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.00268/0.6809, allocations: 1.786 MB / 0.5423 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005746/0.6815, allocations: 323.4 kB / 0.5427 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/0.6855, allocations: 2.367 MB / 0.545 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.047e-05/0.6855, allocations: 19.25 kB / 0.545 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/0.6855, allocations: 7.562 kB / 0.545 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.6855, allocations: 3.656 kB / 0.545 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008367/0.6939, allocations: 5.91 MB / 0.5508 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.6939, allocations: 3.719 kB / 0.5508 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007107/0.6947, allocations: 172.2 kB / 0.5509 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001909/0.6966, allocations: 0.7112 MB / 0.5516 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.763e-05/0.6967, allocations: 21.81 kB / 0.5516 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0045/0.7012, allocations: 4.816 MB / 0.5564 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7012, allocations: 4.031 kB / 0.5564 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005096/0.7063, allocations: 4.341 MB / 0.5606 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005211/0.7068, allocations: 378 kB / 0.561 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002811/0.7071, allocations: 23.28 kB / 0.561 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009674/0.7081, allocations: 67.91 kB / 0.561 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.7083, allocations: 67.92 kB / 0.5611 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.922e-05/0.7083, allocations: 36 kB / 0.5611 GB, free: 112.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002417/0.7108, allocations: 2.318 MB / 0.5634 GB, free: 110.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7108, allocations: 0 / 0.5634 GB, free: 110.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003327/0.7141, allocations: 0.8249 MB / 0.5642 GB, free: 109.2 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.0002939/0.7144, allocations: 155.6 kB / 0.5644 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004368/0.7188, allocations: 4.05 MB / 0.5683 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.7188, allocations: 0 / 0.5683 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.7199, allocations: 1.117 MB / 0.5694 GB, free: 104 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.7217, allocations: 387 kB / 0.5698 GB, free: 103.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008267/0.73, allocations: 7.379 MB / 0.577 GB, free: 96.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001976/0.732, allocations: 2.785 MB / 0.5797 GB, free: 93.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002848/0.7348, allocations: 1.66 MB / 0.5813 GB, free: 91.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004752/0.7353, allocations: 215.4 kB / 0.5815 GB, free: 91.54 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.7353, allocations: 0 / 0.5815 GB, free: 91.54 MB / 462.1 MB Notification: Performance of Templates: time 0.04149/0.7768, allocations: 27.9 MB / 0.6088 GB, free: 63.86 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