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.001064/0.001064, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001175/0.001175, allocations: 192 kB / 18.51 MB, free: 4.508 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.361/1.361, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001356/0.001357, allocations: 51.92 kB / 280.6 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09876, allocations: 46.63 MB / 327.3 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01176/0.1106, allocations: 10.31 MB / 337.6 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008104/0.1187, allocations: 3.871 MB / 341.5 MB, free: 6.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002547/0.1214, allocations: 51.88 kB / 341.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004635/0.126, allocations: 2.071 MB / 343.6 MB, free: 4.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005655/0.1317, allocations: 1.642 MB / 345.2 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002084/0.1338, allocations: 0.694 MB / 345.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005668/0.1395, allocations: 3.385 MB / 349.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003397/0.1429, allocations: 2.704 MB / 352 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002104/0.145, allocations: 1.269 MB / 353.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002301/0.1474, allocations: 1.76 MB / 355 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005714/0.148, allocations: 263.9 kB / 355.3 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002061/0.1501, allocations: 1.112 MB / 356.4 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001465/0.1515, allocations: 1.574 MB / 358 MB, free: 5.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001898/0.1535, allocations: 1.872 MB / 359.9 MB, free: 3.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006101/0.1596, allocations: 5.72 MB / 365.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1597, allocations: 0 / 365.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1597, allocations: 4 kB / 365.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.256e-05/0.1598, allocations: 0 / 365.6 MB, free: 13.97 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.007/0.1668, allocations: 4.137 MB / 369.7 MB, free: 9.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1668, allocations: 8.031 kB / 369.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006668/0.1735, allocations: 1.848 MB / 371.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003544/0.1771, allocations: 1.936 MB / 373.5 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.1773, allocations: 209.2 kB / 373.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000511/0.1778, allocations: 267.9 kB / 374 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1687/0.3465, allocations: 9.972 MB / 383.9 MB, free: 47.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-05/0.3466, allocations: 41.7 kB / 384 MB, free: 47.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003406/0.347, allocations: 135.7 kB / 384.1 MB, free: 47.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00323/0.3502, allocations: 1.849 MB / 386 MB, free: 46.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.017/0.3672, allocations: 8.54 MB / 394.5 MB, free: 43.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03261/0.3999, allocations: 36.85 MB / 431.4 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008221/0.4081, allocations: 3.875 MB / 435.2 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/0.4099, allocations: 1.815 MB / 437 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009295/0.4192, allocations: 7.542 MB / 444.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.4192, allocations: 43.56 kB / 444.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=150): time 3.968e-06/0.4193, allocations: 0.8438 kB / 444.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.0506/0.4699, allocations: 17.46 MB / 462.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.4699, allocations: 146.9 kB / 462.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004195/0.4741, allocations: 3.481 MB / 465.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/0.4743, allocations: 49.7 kB / 465.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001668/0.476, allocations: 2.736 MB / 468.5 MB, free: 3.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005342/0.4765, allocations: 0.6364 MB / 469.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001279/0.4778, allocations: 1.119 MB / 470.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.747e-05/0.4779, allocations: 305.1 kB / 470.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002724/0.4806, allocations: 1.947 MB / 472.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004755/0.4854, allocations: 5.377 MB / 477.9 MB, free: 8.422 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008305/0.4937, allocations: 7.93 MB / 485.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.24e-05/0.4938, allocations: 32 kB / 485.8 MB, free: 14.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01549/0.5093, allocations: 8.184 MB / 494 MB, free: 6.566 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.906e-05/0.5094, allocations: 56.97 kB / 494.1 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/0.5095, allocations: 120.5 kB / 494.2 MB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003962/0.5135, allocations: 1.304 MB / 495.5 MB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00362/0.5171, allocations: 1.255 MB / 496.8 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008952/0.5261, allocations: 6.556 MB / 0.4915 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004468/0.5306, allocations: 299.6 kB / 0.4918 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005894/0.5312, allocations: 339.9 kB / 0.4921 GB, free: 12.51 MB / 398.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.002763/0.534, allocations: 1.822 MB / 0.4939 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005835/0.5346, allocations: 304.1 kB / 0.4942 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007525/0.5421, allocations: 3.365 MB / 0.4975 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.465e-05/0.5422, allocations: 19.94 kB / 0.4975 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.5422, allocations: 4 kB / 0.4975 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.5422, allocations: 11.97 kB / 0.4975 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01455/0.5568, allocations: 7.615 MB / 0.505 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/0.5568, allocations: 4 kB / 0.505 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.558, allocations: 235.7 kB / 0.5052 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003868/0.5619, allocations: 1.128 MB / 0.5063 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001466/0.562, allocations: 28 kB / 0.5063 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008891/0.5709, allocations: 6.164 MB / 0.5123 GB, free: 7.555 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5709, allocations: 0 / 0.5123 GB, free: 7.555 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009577/0.5805, allocations: 5.705 MB / 0.5179 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/0.5817, allocations: 0.575 MB / 0.5185 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003535/0.5821, allocations: 28 kB / 0.5185 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.5834, allocations: 91.95 kB / 0.5186 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002568/0.5836, allocations: 88.86 kB / 0.5187 GB, free: 1.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.5837, allocations: 43.98 kB / 0.5187 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002928/0.5867, allocations: 2.162 MB / 0.5208 GB, free: 14.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5867, allocations: 0 / 0.5208 GB, free: 14.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00367/0.5904, allocations: 0.9193 MB / 0.5217 GB, free: 13.91 MB / 430.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.0003789/0.5908, allocations: 161.6 kB / 0.5219 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008944/0.5997, allocations: 5.546 MB / 0.5273 GB, free: 8.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.5997, allocations: 0 / 0.5273 GB, free: 8.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002218/0.602, allocations: 1.539 MB / 0.5288 GB, free: 6.676 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.604, allocations: 361.2 kB / 0.5291 GB, free: 6.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1524/0.7564, allocations: 8.105 MB / 0.537 GB, free: 145.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002915/0.7594, allocations: 2.852 MB / 0.5398 GB, free: 144.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004194/0.7636, allocations: 1.702 MB / 0.5415 GB, free: 144.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005908/0.7642, allocations: 220.8 kB / 0.5417 GB, free: 144.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.222e-06/0.7642, allocations: 3.75 kB / 0.5417 GB, free: 144.4 MB / 430.1 MB Notification: Performance of Templates: time 0.05136/0.8155, allocations: 34.07 MB / 0.575 GB, free: 124.1 MB / 430.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches