Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001166/0.001167, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 52.39 kB / 280 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, allocations: 46.62 MB / 326.6 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0358/0.1399, allocations: 34.77 MB / 361.4 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02173/0.1617, allocations: 7.931 MB / 369.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008372/0.1702, allocations: 147.6 kB / 369.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004755/0.175, allocations: 2.053 MB / 371.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005349/0.1804, allocations: 1.522 MB / 373 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002155/0.1826, allocations: 0.6358 MB / 373.7 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006757/0.1893, allocations: 4.801 MB / 378.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2175/0.4068, allocations: 2.677 MB / 381.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003205/0.4101, allocations: 1.131 MB / 382.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004444/0.4146, allocations: 1.882 MB / 384.1 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009266/0.4155, allocations: 193.7 kB / 384.3 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002989/0.4185, allocations: 1.119 MB / 385.4 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002182/0.4207, allocations: 1.539 MB / 387 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002434/0.4232, allocations: 1.812 MB / 388.8 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007967/0.4311, allocations: 5.678 MB / 394.5 MB, free: 8.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4312, allocations: 0 / 394.5 MB, free: 8.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.4312, allocations: 1.281 kB / 394.5 MB, free: 8.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002289/0.4314, allocations: 3.938 kB / 394.5 MB, free: 8.312 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01063/0.4421, allocations: 4.137 MB / 398.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.4422, allocations: 12.97 kB / 398.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00727/0.4494, allocations: 1.853 MB / 400.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005504/0.455, allocations: 1.922 MB / 402.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.4552, allocations: 210.9 kB / 402.6 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001007/0.4562, allocations: 274.2 kB / 402.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01928/0.4755, allocations: 9.976 MB / 412.9 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.4756, allocations: 37.84 kB / 412.9 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003857/0.476, allocations: 134.7 kB / 413 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002746/0.4788, allocations: 1.859 MB / 414.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01879/0.4976, allocations: 8.54 MB / 423.4 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05045/0.5481, allocations: 36.85 MB / 460.3 MB, free: 2.453 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009989/0.5581, allocations: 3.886 MB / 464.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002456/0.5606, allocations: 1.806 MB / 466 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01137/0.572, allocations: 7.523 MB / 473.5 MB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/0.5721, allocations: 58.3 kB / 473.5 MB, free: 4.758 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 5.18e-06/0.5721, allocations: 4 kB / 473.6 MB, free: 4.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.07421/0.6463, allocations: 17.43 MB / 491 MB, free: 3.242 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.6465, allocations: 149.1 kB / 491.1 MB, free: 3.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01143/0.6579, allocations: 3.483 MB / 494.6 MB, free: 15.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006823/0.6587, allocations: 52.12 kB / 494.7 MB, free: 15.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004144/0.6629, allocations: 2.736 MB / 497.4 MB, free: 12.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/0.6646, allocations: 0.6405 MB / 498 MB, free: 12.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004932/0.6695, allocations: 1.123 MB / 499.2 MB, free: 11.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.6697, allocations: 305 kB / 499.5 MB, free: 10.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006037/0.6758, allocations: 1.955 MB / 0.4897 GB, free: 8.773 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01092/0.6868, allocations: 5.373 MB / 0.4949 GB, free: 1.746 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01646/0.7033, allocations: 7.93 MB / 0.5027 GB, free: 8.613 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001695/0.7035, allocations: 36 kB / 0.5027 GB, free: 8.578 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.02763/0.7312, allocations: 8.181 MB / 0.5107 GB, free: 1.125 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000162/0.7314, allocations: 56 kB / 0.5107 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002568/0.7316, allocations: 124.9 kB / 0.5108 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006495/0.7382, allocations: 1.297 MB / 0.5121 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006803/0.745, allocations: 1.261 MB / 0.5133 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01463/0.7597, allocations: 6.103 MB / 0.5193 GB, free: 8.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007178/0.7669, allocations: 299.6 kB / 0.5196 GB, free: 8.027 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001659/0.7686, allocations: 340 kB / 0.5199 GB, free: 7.695 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.005892/0.7745, allocations: 1.817 MB / 0.5217 GB, free: 5.973 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008177/0.7753, allocations: 304.1 kB / 0.522 GB, free: 5.672 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01002/0.7853, allocations: 3.361 MB / 0.5253 GB, free: 2.301 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.097e-05/0.7855, allocations: 27.12 kB / 0.5253 GB, free: 2.277 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/0.7855, allocations: 4 kB / 0.5253 GB, free: 2.273 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.471e-05/0.7856, allocations: 11.91 kB / 0.5253 GB, free: 2.262 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02198/0.8075, allocations: 7.606 MB / 0.5327 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.596e-05/0.8077, allocations: 4 kB / 0.5327 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/0.8095, allocations: 243.6 kB / 0.533 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005443/0.815, allocations: 1.12 MB / 0.5341 GB, free: 9.223 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004109/0.8154, allocations: 31.67 kB / 0.5341 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/0.8281, allocations: 5.713 MB / 0.5397 GB, free: 3.352 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.8281, allocations: 0 / 0.5397 GB, free: 3.352 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2457/1.074, allocations: 5.703 MB / 0.5452 GB, free: 177.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002053/1.076, allocations: 0.5723 MB / 0.5458 GB, free: 177.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005173/1.077, allocations: 26.03 kB / 0.5458 GB, free: 177.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001361/1.078, allocations: 94.09 kB / 0.5459 GB, free: 177.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003588/1.078, allocations: 89.86 kB / 0.546 GB, free: 177.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/1.078, allocations: 51.09 kB / 0.546 GB, free: 177.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005605/1.084, allocations: 2.159 MB / 0.5482 GB, free: 177 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.084, allocations: 0 / 0.5482 GB, free: 177 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006694/1.091, allocations: 0.9112 MB / 0.549 GB, free: 177 MB / 462.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.0005383/1.091, allocations: 163 kB / 0.5492 GB, free: 176.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009787/1.101, allocations: 4.787 MB / 0.5539 GB, free: 175.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/1.101, allocations: 2.406 kB / 0.5539 GB, free: 175.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002359/1.104, allocations: 1.529 MB / 0.5554 GB, free: 174.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/1.106, allocations: 341.7 kB / 0.5557 GB, free: 174.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/1.122, allocations: 9.811 MB / 0.5653 GB, free: 169.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002753/1.125, allocations: 2.861 MB / 0.5681 GB, free: 168.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004191/1.129, allocations: 1.717 MB / 0.5698 GB, free: 168.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006622/1.13, allocations: 220.7 kB / 0.57 GB, free: 168.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.093e-06/1.13, allocations: 0 / 0.57 GB, free: 168.3 MB / 462.1 MB Notification: Performance of Templates: time 0.05521/1.185, allocations: 32.78 MB / 0.602 GB, free: 138.8 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches