Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008256/0.0008256, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003166/0.003166, allocations: 160.7 kB / 24.7 MB, free: 8.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8335/0.8335, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.39e-05/2.579e-05, allocations: 4.672 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.007296/0.007322, allocations: 9.053 MB / 334.9 MB, free: 6.316 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004751/0.01207, allocations: 3.699 MB / 338.6 MB, free: 2.605 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005852/0.01266, allocations: 67.69 kB / 338.7 MB, free: 2.539 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.0146, allocations: 2.118 MB / 340.8 MB, free: 424 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001943/0.01654, allocations: 1.712 MB / 342.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007479/0.01729, allocations: 0.7327 MB / 343.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002352/0.01964, allocations: 3.776 MB / 347 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001644/0.02128, allocations: 2.469 MB / 349.5 MB, free: 7.656 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00143/0.02271, allocations: 1.91 MB / 351.4 MB, free: 5.742 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001846/0.02456, allocations: 1.882 MB / 353.3 MB, free: 3.855 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002753/0.02483, allocations: 268 kB / 353.5 MB, free: 3.594 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.02602, allocations: 1.053 MB / 354.6 MB, free: 2.539 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008868/0.02691, allocations: 1.667 MB / 356.2 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007641/0.02767, allocations: 1.059 MB / 357.3 MB, free: 15.8 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004014/0.03169, allocations: 5.938 MB / 363.2 MB, free: 9.848 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.03169, allocations: 0 / 363.2 MB, free: 9.848 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.03169, allocations: 0 / 363.2 MB, free: 9.848 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.592e-05/0.03174, allocations: 0 / 363.2 MB, free: 9.848 MB / 330.7 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.004388/0.03613, allocations: 4.149 MB / 367.4 MB, free: 5.645 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.03617, allocations: 8.031 kB / 367.4 MB, free: 5.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003208/0.03937, allocations: 1.909 MB / 369.3 MB, free: 3.723 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.04132, allocations: 1.822 MB / 371.1 MB, free: 1.867 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.721e-05/0.04142, allocations: 209.1 kB / 371.3 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002974/0.04172, allocations: 271.8 kB / 371.6 MB, free: 1.395 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009743/0.05146, allocations: 10.06 MB / 381.7 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-05/0.05152, allocations: 39.64 kB / 381.7 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000226/0.05175, allocations: 139.9 kB / 381.8 MB, free: 6.465 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001592/0.05334, allocations: 1.848 MB / 383.7 MB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01026/0.0636, allocations: 8.559 MB / 392.2 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02759/0.09119, allocations: 34.75 MB / 427 MB, free: 8.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005652/0.09684, allocations: 3.243 MB / 430.2 MB, free: 4.992 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/0.0984, allocations: 1.697 MB / 431.9 MB, free: 3.285 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006908/0.1053, allocations: 6.312 MB / 438.2 MB, free: 12.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.1053, allocations: 51.5 kB / 438.3 MB, free: 12.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=150): time 4.168e-06/0.1053, allocations: 0 / 438.3 MB, free: 12.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.1684/0.2738, allocations: 18.07 MB / 456.4 MB, free: 113.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.2738, allocations: 156.8 kB / 456.5 MB, free: 113.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002242/0.276, allocations: 3.299 MB / 459.8 MB, free: 112.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.042e-05/0.2761, allocations: 49.45 kB / 459.9 MB, free: 112.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006239/0.2767, allocations: 2.837 MB / 462.7 MB, free: 110.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002873/0.277, allocations: 0.6655 MB / 463.4 MB, free: 109.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007005/0.2777, allocations: 1.107 MB / 464.5 MB, free: 109.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.357e-05/0.2778, allocations: 308.8 kB / 464.8 MB, free: 109.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.2793, allocations: 1.965 MB / 466.7 MB, free: 108.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002145/0.2814, allocations: 5.389 MB / 472.1 MB, free: 103.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003922/0.2854, allocations: 7.957 MB / 480.1 MB, free: 94.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-05/0.2854, allocations: 32 kB / 480.1 MB, free: 93.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.007371/0.2928, allocations: 8.156 MB / 488.3 MB, free: 85.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/0.2928, allocations: 63.16 kB / 488.3 MB, free: 85.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.292e-05/0.2929, allocations: 120 kB / 488.4 MB, free: 85.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001963/0.2948, allocations: 1.3 MB / 489.7 MB, free: 84.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.2965, allocations: 1.267 MB / 491 MB, free: 83.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004818/0.3013, allocations: 6.378 MB / 497.4 MB, free: 76.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002458/0.3038, allocations: 331.6 kB / 497.7 MB, free: 76.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/0.3041, allocations: 342.2 kB / 498 MB, free: 76 MB / 410.7 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.001975/0.306, allocations: 1.807 MB / 499.9 MB, free: 74.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.3063, allocations: 282.1 kB / 0.4884 GB, free: 73.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003527/0.3098, allocations: 3.342 MB / 0.4917 GB, free: 70.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.3099, allocations: 19.94 kB / 0.4917 GB, free: 70.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3099, allocations: 8 kB / 0.4917 GB, free: 70.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.3099, allocations: 7.969 kB / 0.4917 GB, free: 70.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006525/0.3164, allocations: 6.678 MB / 0.4982 GB, free: 63.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.3164, allocations: 0 / 0.4982 GB, free: 63.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.317, allocations: 251.6 kB / 0.4985 GB, free: 63.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/0.3187, allocations: 1.113 MB / 0.4996 GB, free: 62.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.554e-05/0.3187, allocations: 27.98 kB / 0.4996 GB, free: 62.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004262/0.323, allocations: 6.011 MB / 0.5055 GB, free: 56.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.323, allocations: 2.531 kB / 0.5055 GB, free: 56.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004739/0.3277, allocations: 5.702 MB / 0.511 GB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.328, allocations: 273.9 kB / 0.5113 GB, free: 50.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.3282, allocations: 30.56 kB / 0.5113 GB, free: 50.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006437/0.3288, allocations: 123.8 kB / 0.5114 GB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.329, allocations: 96.75 kB / 0.5115 GB, free: 50.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.348e-05/0.329, allocations: 45.69 kB / 0.5116 GB, free: 50.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001301/0.3303, allocations: 1.881 MB / 0.5134 GB, free: 48.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3303, allocations: 0 / 0.5134 GB, free: 48.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002781/0.3331, allocations: 0.9647 MB / 0.5143 GB, free: 47.19 MB / 410.7 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.0003331/0.3334, allocations: 178.6 kB / 0.5145 GB, free: 47.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003793/0.3372, allocations: 4.622 MB / 0.519 GB, free: 42.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3372, allocations: 0 / 0.519 GB, free: 42.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.3384, allocations: 1.449 MB / 0.5204 GB, free: 40.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.3395, allocations: 310.4 kB / 0.5207 GB, free: 40.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007522/0.347, allocations: 8.445 MB / 0.529 GB, free: 32.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001463/0.3484, allocations: 2.299 MB / 0.5312 GB, free: 29.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004178/0.3489, allocations: 248.5 kB / 0.5315 GB, free: 29.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3489, allocations: 0 / 0.5315 GB, free: 29.59 MB / 410.7 MB Notification: Performance of Templates: time 0.04817/0.397, allocations: 66.51 MB / 0.5964 GB, free: 11.15 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.683178129605949]