Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001713/0.001713, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002014/0.002014, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.476/1.476, allocations: 227.7 MB / 247.7 MB, free: 10.32 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 60.59 kB / 307.9 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1149, allocations: 50.54 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01288/0.1279, allocations: 10.25 MB / 368.7 MB, free: 3.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1868/0.3147, allocations: 3.886 MB / 372.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001695/0.3165, allocations: 56.94 kB / 372.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004684/0.3212, allocations: 2.065 MB / 374.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004558/0.3257, allocations: 1.611 MB / 376.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001791/0.3276, allocations: 0.683 MB / 377 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005229/0.3328, allocations: 3.395 MB / 380.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004387/0.3372, allocations: 2.68 MB / 383.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002696/0.3399, allocations: 1.245 MB / 384.3 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002956/0.3429, allocations: 1.757 MB / 386.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001083/0.344, allocations: 266.4 kB / 386.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002625/0.3466, allocations: 1.104 MB / 387.4 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001981/0.3486, allocations: 1.551 MB / 389 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002496/0.3512, allocations: 1.849 MB / 390.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006538/0.3577, allocations: 5.67 MB / 396.5 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3577, allocations: 3.031 kB / 396.5 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3578, allocations: 4 kB / 396.5 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001857/0.3579, allocations: 0 / 396.5 MB, free: 0.8242 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.009944/0.3679, allocations: 4.102 MB / 400.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.368, allocations: 14.34 kB / 400.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007357/0.3753, allocations: 1.855 MB / 402.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004552/0.3799, allocations: 1.85 MB / 404.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001788/0.3801, allocations: 206.6 kB / 404.5 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008496/0.381, allocations: 270.5 kB / 404.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02176/0.4027, allocations: 10 MB / 414.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001209/0.4029, allocations: 43.59 kB / 414.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004779/0.4034, allocations: 130.4 kB / 415 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003395/0.4068, allocations: 1.851 MB / 416.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01982/0.4266, allocations: 8.575 MB / 425.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04992/0.4766, allocations: 36.84 MB / 462.2 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01079/0.4874, allocations: 3.908 MB / 466.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002835/0.4903, allocations: 1.811 MB / 467.9 MB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01265/0.503, allocations: 7.619 MB / 475.6 MB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.39e-05/0.5031, allocations: 55.44 kB / 475.6 MB, free: 1.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 5.159e-06/0.5031, allocations: 0 / 475.6 MB, free: 1.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05965/0.5627, allocations: 17.53 MB / 493.1 MB, free: 15.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.5629, allocations: 149.5 kB / 493.3 MB, free: 15.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005967/0.5688, allocations: 3.461 MB / 496.8 MB, free: 12.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004297/0.5693, allocations: 51.97 kB / 496.8 MB, free: 12.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002443/0.5718, allocations: 2.726 MB / 499.5 MB, free: 9.457 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009955/0.5728, allocations: 0.6474 MB / 0.4885 GB, free: 8.816 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001731/0.5745, allocations: 1.115 MB / 0.4895 GB, free: 7.691 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.5747, allocations: 309 kB / 0.4898 GB, free: 7.387 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003467/0.5781, allocations: 1.963 MB / 0.4918 GB, free: 5.418 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006723/0.5849, allocations: 5.385 MB / 0.497 GB, free: 14.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/0.5963, allocations: 7.952 MB / 0.5048 GB, free: 4.672 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/0.5964, allocations: 36 kB / 0.5048 GB, free: 4.637 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01936/0.6158, allocations: 8.199 MB / 0.5128 GB, free: 12.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.953e-05/0.616, allocations: 63.94 kB / 0.5129 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001602/0.6161, allocations: 120 kB / 0.513 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004426/0.6206, allocations: 1.297 MB / 0.5143 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004755/0.6253, allocations: 1.267 MB / 0.5155 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.6357, allocations: 6.557 MB / 0.5219 GB, free: 2.988 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004926/0.6407, allocations: 303.5 kB / 0.5222 GB, free: 2.691 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001198/0.6419, allocations: 347.9 kB / 0.5225 GB, free: 2.352 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004191/0.6461, allocations: 1.813 MB / 0.5243 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007656/0.6469, allocations: 300.1 kB / 0.5246 GB, free: 236 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2029/0.8498, allocations: 3.38 MB / 0.5279 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.434e-05/0.8499, allocations: 23 kB / 0.5279 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.996e-05/0.8499, allocations: 4.125 kB / 0.5279 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.399e-05/0.85, allocations: 12.3 kB / 0.5279 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/0.8671, allocations: 7.615 MB / 0.5354 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-05/0.8671, allocations: 1.281 kB / 0.5354 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.8684, allocations: 244 kB / 0.5356 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003605/0.872, allocations: 1.123 MB / 0.5367 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002195/0.8723, allocations: 31.97 kB / 0.5367 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007531/0.8798, allocations: 6.175 MB / 0.5428 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.8798, allocations: 1.375 kB / 0.5428 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008828/0.8887, allocations: 5.744 MB / 0.5484 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009347/0.8896, allocations: 347.2 kB / 0.5487 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004602/0.8901, allocations: 23.84 kB / 0.5487 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.8914, allocations: 105.2 kB / 0.5488 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/0.8917, allocations: 87.91 kB / 0.5489 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.8918, allocations: 49.64 kB / 0.5489 GB, free: 134.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002962/0.8948, allocations: 2.144 MB / 0.551 GB, free: 134 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8948, allocations: 0 / 0.551 GB, free: 134 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004085/0.8989, allocations: 0.8966 MB / 0.5519 GB, free: 133.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003781/0.8993, allocations: 168.3 kB / 0.5521 GB, free: 133.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007575/0.9069, allocations: 5.569 MB / 0.5575 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.9069, allocations: 0 / 0.5575 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00203/0.9089, allocations: 1.545 MB / 0.559 GB, free: 129.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002205/0.9112, allocations: 350.8 kB / 0.5594 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/0.9242, allocations: 8.502 MB / 0.5677 GB, free: 121 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00276/0.927, allocations: 2.847 MB / 0.5704 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008832/0.9279, allocations: 263.4 kB / 0.5707 GB, free: 117.8 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.9279, allocations: 0 / 0.5707 GB, free: 117.8 MB / 446.1 MB Notification: Performance of Templates: time 0.07231/1, allocations: 65.46 MB / 0.6346 GB, free: 52.56 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches