Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 119.4 kB / 18.41 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002116/0.002117, allocations: 188.3 kB / 21.34 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 247 MB, free: 4.316 MB / 190.1 MB " [Timeout remaining time 178] 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 51.91 kB / 358.7 MB, free: 8.414 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1025, allocations: 49.43 MB / 408.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01261/0.1151, allocations: 10.28 MB / 418.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008157/0.1233, allocations: 3.862 MB / 422.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.1248, allocations: 59.81 kB / 422.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004293/0.1291, allocations: 2.071 MB / 424.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004997/0.1342, allocations: 1.646 MB / 426 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002058/0.1363, allocations: 0.6901 MB / 426.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005698/0.142, allocations: 3.362 MB / 430.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.196/0.338, allocations: 2.676 MB / 432.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.3403, allocations: 1.264 MB / 434 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002841/0.3432, allocations: 1.756 MB / 435.8 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008707/0.3441, allocations: 264.3 kB / 436 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002338/0.3464, allocations: 1.123 MB / 437.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001915/0.3483, allocations: 1.574 MB / 438.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.3505, allocations: 1.859 MB / 440.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007767/0.3583, allocations: 5.968 MB / 446.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3583, allocations: 0 / 446.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3584, allocations: 0 / 446.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001903/0.3585, allocations: 0 / 446.6 MB, free: 2.891 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.009975/0.3685, allocations: 4.237 MB / 450.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3686, allocations: 13 kB / 450.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007139/0.3757, allocations: 1.877 MB / 452.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004354/0.3801, allocations: 1.915 MB / 454.6 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.3803, allocations: 210.2 kB / 454.8 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009929/0.3813, allocations: 271.3 kB / 455.1 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02149/0.4028, allocations: 10.06 MB / 465.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.403, allocations: 34.91 kB / 465.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004783/0.4035, allocations: 136.2 kB / 465.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003025/0.4065, allocations: 1.855 MB / 467.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02003/0.4265, allocations: 8.536 MB / 475.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05037/0.477, allocations: 36.78 MB / 0.5005 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.4875, allocations: 3.871 MB / 0.5042 GB, free: 9.352 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002888/0.4904, allocations: 1.82 MB / 0.506 GB, free: 7.527 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01208/0.5025, allocations: 7.537 MB / 0.5134 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/0.5026, allocations: 55.06 kB / 0.5134 GB, free: 15.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 5.12e-06/0.5026, allocations: 0 / 0.5134 GB, free: 15.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.05617/0.5588, allocations: 17.62 MB / 0.5306 GB, free: 14.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.559, allocations: 142.7 kB / 0.5308 GB, free: 13.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005546/0.5645, allocations: 3.487 MB / 0.5342 GB, free: 10.39 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003534/0.5649, allocations: 45.7 kB / 0.5342 GB, free: 10.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002339/0.5672, allocations: 2.848 MB / 0.537 GB, free: 7.508 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000859/0.5681, allocations: 0.6805 MB / 0.5377 GB, free: 6.836 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/0.5699, allocations: 1.122 MB / 0.5388 GB, free: 5.707 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.57, allocations: 301.1 kB / 0.539 GB, free: 5.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003484/0.5735, allocations: 1.956 MB / 0.541 GB, free: 3.449 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00648/0.58, allocations: 5.371 MB / 0.5462 GB, free: 12.43 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.5906, allocations: 7.927 MB / 0.5539 GB, free: 3.156 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.008e-05/0.5907, allocations: 39.94 kB / 0.554 GB, free: 3.117 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.0177/0.6084, allocations: 8.185 MB / 0.562 GB, free: 10.93 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.697e-05/0.6085, allocations: 56 kB / 0.562 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/0.6087, allocations: 124 kB / 0.5621 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00448/0.6132, allocations: 1.292 MB / 0.5634 GB, free: 9.453 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004366/0.6176, allocations: 1.268 MB / 0.5646 GB, free: 8.188 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/0.6279, allocations: 6.555 MB / 0.571 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004338/0.6323, allocations: 303.6 kB / 0.5713 GB, free: 1.203 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008059/0.6331, allocations: 347.9 kB / 0.5717 GB, free: 0.8633 MB / 478.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.003411/0.6366, allocations: 1.807 MB / 0.5734 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006328/0.6372, allocations: 321.8 kB / 0.5737 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007979/0.6452, allocations: 3.365 MB / 0.577 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.974e-05/0.6453, allocations: 22.59 kB / 0.577 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.6453, allocations: 7.984 kB / 0.5771 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.318e-05/0.6453, allocations: 3.984 kB / 0.5771 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/0.6616, allocations: 7.573 MB / 0.5845 GB, free: 3.691 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.856e-05/0.6617, allocations: 0 / 0.5845 GB, free: 3.691 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/0.663, allocations: 235.7 kB / 0.5847 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004204/0.6672, allocations: 1.128 MB / 0.5858 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002543/0.6675, allocations: 24 kB / 0.5858 GB, free: 2.305 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009896/0.6774, allocations: 6.176 MB / 0.5918 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.6774, allocations: 2.969 kB / 0.5918 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/0.6886, allocations: 5.716 MB / 0.5974 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000949/0.6895, allocations: 374.8 kB / 0.5978 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004791/0.69, allocations: 22.34 kB / 0.5978 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001397/0.6914, allocations: 99.88 kB / 0.5979 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002926/0.6918, allocations: 84.88 kB / 0.598 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.6919, allocations: 47.98 kB / 0.598 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003946/0.6959, allocations: 2.15 MB / 0.6001 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.7e-07/0.6959, allocations: 0 / 0.6001 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004716/0.7006, allocations: 0.9165 MB / 0.601 GB, free: 2.559 MB / 0.4981 GB 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.0004734/0.7011, allocations: 169.8 kB / 0.6012 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008709/0.7098, allocations: 4.798 MB / 0.6059 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.7098, allocations: 0 / 0.6059 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002748/0.7126, allocations: 1.553 MB / 0.6074 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.7149, allocations: 358.1 kB / 0.6077 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01606/0.731, allocations: 8.497 MB / 0.616 GB, free: 3.152 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003561/0.7346, allocations: 2.858 MB / 0.6188 GB, free: 268 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009594/0.7355, allocations: 263.4 kB / 0.6191 GB, free: 4 kB / 0.5137 GB Notification: Performance of SimCode: time 8.41e-07/0.7355, allocations: 0 / 0.6191 GB, free: 4 kB / 0.5137 GB Notification: Performance of Templates: time 0.2639/0.9994, allocations: 66.3 MB / 0.6838 GB, free: 133.4 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.494084266014397]