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.001889/0.001889, allocations: 103.5 kB / 20.43 MB, free: 1.199 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.002235/0.002235, allocations: 193.7 kB / 23.71 MB, free: 4.422 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.45/1.45, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.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.001652/0.001652, allocations: 47.92 kB / 370.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2641, allocations: 52.19 MB / 423.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01226/0.2764, allocations: 9.064 MB / 432.1 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007861/0.2843, allocations: 3.675 MB / 435.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.2856, allocations: 67.69 kB / 435.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004321/0.2899, allocations: 2.032 MB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004878/0.2948, allocations: 1.677 MB / 439.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.2965, allocations: 0.7018 MB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005305/0.3018, allocations: 3.365 MB / 443.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003001/0.3048, allocations: 2.206 MB / 445.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002208/0.307, allocations: 1.285 MB / 447.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002984/0.31, allocations: 1.799 MB / 448.9 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005804/0.3106, allocations: 260 kB / 449.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002267/0.3129, allocations: 1.018 MB / 450.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001759/0.3146, allocations: 1.613 MB / 451.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001889/0.3165, allocations: 1.386 MB / 453.2 MB, free: 320 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007523/0.324, allocations: 5.984 MB / 459.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.324, allocations: 0 / 459.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.324, allocations: 0 / 459.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001603/0.3242, allocations: 4 kB / 459.2 MB, free: 10.3 MB / 366.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.00829/0.3325, allocations: 4.16 MB / 463.4 MB, free: 6.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3325, allocations: 8.031 kB / 463.4 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006744/0.3393, allocations: 1.878 MB / 465.2 MB, free: 4.195 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004763/0.3441, allocations: 1.861 MB / 467.1 MB, free: 2.293 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.3443, allocations: 209.2 kB / 467.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006503/0.3449, allocations: 267.8 kB / 467.6 MB, free: 1.824 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02012/0.365, allocations: 10.03 MB / 477.6 MB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/0.3651, allocations: 43.67 kB / 477.6 MB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003671/0.3655, allocations: 135.9 kB / 477.8 MB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00328/0.3688, allocations: 1.848 MB / 479.6 MB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01917/0.3879, allocations: 8.524 MB / 488.2 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04672/0.4347, allocations: 34.65 MB / 0.5106 GB, free: 8.871 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01044/0.4451, allocations: 3.067 MB / 0.5135 GB, free: 5.773 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002832/0.4479, allocations: 1.69 MB / 0.5152 GB, free: 4.074 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01335/0.4613, allocations: 6.202 MB / 0.5213 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.435e-05/0.4613, allocations: 59.5 kB / 0.5213 GB, free: 13.76 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.47e-06/0.4614, allocations: 0 / 0.5213 GB, free: 13.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2954/0.7568, allocations: 17.4 MB / 0.5383 GB, free: 109.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.7568, allocations: 144.3 kB / 0.5384 GB, free: 108.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003828/0.7606, allocations: 3.235 MB / 0.5416 GB, free: 107.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002492/0.7609, allocations: 47.55 kB / 0.5416 GB, free: 107.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.762, allocations: 2.88 MB / 0.5445 GB, free: 105.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004947/0.7625, allocations: 0.667 MB / 0.5451 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001087/0.7636, allocations: 1.127 MB / 0.5462 GB, free: 104.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/0.7637, allocations: 309.1 kB / 0.5465 GB, free: 104.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00222/0.7659, allocations: 1.952 MB / 0.5484 GB, free: 103.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003651/0.7695, allocations: 5.377 MB / 0.5537 GB, free: 98.63 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005851/0.7754, allocations: 7.937 MB / 0.5614 GB, free: 90.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.563e-05/0.7754, allocations: 36 kB / 0.5614 GB, free: 90.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01142/0.7869, allocations: 8.132 MB / 0.5694 GB, free: 82.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.2e-05/0.7869, allocations: 59.98 kB / 0.5694 GB, free: 82.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-05/0.787, allocations: 120.9 kB / 0.5696 GB, free: 82.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003546/0.7906, allocations: 1.306 MB / 0.5708 GB, free: 80.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003115/0.7937, allocations: 1.263 MB / 0.5721 GB, free: 79.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006989/0.8007, allocations: 6.352 MB / 0.5783 GB, free: 73.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003613/0.8043, allocations: 291.8 kB / 0.5786 GB, free: 72.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003891/0.8047, allocations: 343.8 kB / 0.5789 GB, free: 72.63 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.002331/0.807, allocations: 1.811 MB / 0.5807 GB, free: 70.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004972/0.8075, allocations: 290.1 kB / 0.5809 GB, free: 70.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005849/0.8134, allocations: 3.321 MB / 0.5842 GB, free: 67.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/0.8134, allocations: 18.77 kB / 0.5842 GB, free: 67.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.8134, allocations: 8 kB / 0.5842 GB, free: 67.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.8134, allocations: 7.969 kB / 0.5842 GB, free: 67.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.8249, allocations: 6.599 MB / 0.5906 GB, free: 60.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.8249, allocations: 4 kB / 0.5907 GB, free: 60.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.8259, allocations: 235.7 kB / 0.5909 GB, free: 60.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003391/0.8293, allocations: 1.123 MB / 0.592 GB, free: 59.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001854/0.8295, allocations: 28 kB / 0.592 GB, free: 59.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00712/0.8366, allocations: 5.989 MB / 0.5978 GB, free: 53.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.8366, allocations: 4.062 kB / 0.5979 GB, free: 53.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008458/0.8451, allocations: 5.663 MB / 0.6034 GB, free: 47.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/0.8462, allocations: 255.1 kB / 0.6036 GB, free: 47.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008159/0.847, allocations: 35.56 kB / 0.6037 GB, free: 47.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.8488, allocations: 90.92 kB / 0.6037 GB, free: 47.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003025/0.8491, allocations: 88.83 kB / 0.6038 GB, free: 46.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.8493, allocations: 47.98 kB / 0.6039 GB, free: 46.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002686/0.8519, allocations: 1.83 MB / 0.6057 GB, free: 45.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8519, allocations: 0 / 0.6057 GB, free: 45.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004146/0.8561, allocations: 0.9062 MB / 0.6065 GB, free: 44.14 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.0003805/0.8565, allocations: 172 kB / 0.6067 GB, free: 43.97 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006016/0.8625, allocations: 4.591 MB / 0.6112 GB, free: 39.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.8625, allocations: 8 kB / 0.6112 GB, free: 39.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001945/0.8644, allocations: 1.435 MB / 0.6126 GB, free: 37.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/0.8667, allocations: 296.7 kB / 0.6129 GB, free: 37.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01358/0.8802, allocations: 8.145 MB / 0.6208 GB, free: 29.47 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003124/0.8834, allocations: 2.305 MB / 0.6231 GB, free: 27.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003179/0.8865, allocations: 1.662 MB / 0.6247 GB, free: 25.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/0.887, allocations: 199.4 kB / 0.6249 GB, free: 25.27 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.887, allocations: 0 / 0.6249 GB, free: 25.27 MB / 446.1 MB Notification: Performance of Templates: time 0.05131/0.9383, allocations: 31.63 MB / 0.6558 GB, free: 10.04 MB / 462.1 MB " [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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 6.468871159479022]