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.001644/0.001644, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001874/0.001874, allocations: 186 kB / 23.7 MB, free: 4.191 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.297/1.297, allocations: 225.7 MB / 252.5 MB, free: 12.83 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 39.94 kB / 370.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2094, allocations: 52.19 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01091/0.2203, allocations: 9.055 MB / 431.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007269/0.2276, allocations: 3.676 MB / 435.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.2288, allocations: 63.69 kB / 435.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004128/0.233, allocations: 2.04 MB / 437.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004079/0.237, allocations: 1.685 MB / 439.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.2386, allocations: 0.694 MB / 439.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004355/0.243, allocations: 3.354 MB / 443.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00301/0.246, allocations: 2.217 MB / 445.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002066/0.2481, allocations: 1.285 MB / 446.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002771/0.2508, allocations: 1.791 MB / 448.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000734/0.2516, allocations: 264 kB / 448.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.2538, allocations: 1.018 MB / 449.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001848/0.2556, allocations: 1.624 MB / 451.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002303/0.2579, allocations: 1.382 MB / 452.7 MB, free: 140 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007186/0.2651, allocations: 5.988 MB / 458.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2651, allocations: 0 / 458.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2651, allocations: 4 kB / 458.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001812/0.2653, allocations: 0 / 458.7 MB, free: 10.12 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.008263/0.2736, allocations: 4.164 MB / 462.9 MB, free: 5.898 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.2736, allocations: 19.95 kB / 462.9 MB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008099/0.2744, allocations: 0.6335 MB / 463.5 MB, free: 5.234 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006424/0.2808, allocations: 1.89 MB / 465.4 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004717/0.2855, allocations: 2.157 MB / 467.6 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.2857, allocations: 213.2 kB / 467.8 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000577/0.2863, allocations: 263.8 kB / 468 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01822/0.3045, allocations: 10.04 MB / 478.1 MB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.3046, allocations: 43.64 kB / 478.1 MB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006679/0.3053, allocations: 131.9 kB / 478.3 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003252/0.3086, allocations: 1.852 MB / 480.1 MB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01848/0.327, allocations: 8.528 MB / 488.6 MB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04493/0.372, allocations: 35.44 MB / 0.5118 GB, free: 6.902 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008957/0.3809, allocations: 3.071 MB / 0.5148 GB, free: 3.801 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002347/0.3833, allocations: 1.694 MB / 0.5164 GB, free: 2.098 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01088/0.3941, allocations: 6.247 MB / 0.5225 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.043e-05/0.3942, allocations: 55.5 kB / 0.5226 GB, free: 11.74 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.967e-06/0.3942, allocations: 4 kB / 0.5226 GB, free: 11.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2294/0.6236, allocations: 17.45 MB / 0.5396 GB, free: 108 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.6237, allocations: 147.9 kB / 0.5398 GB, free: 107.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003691/0.6274, allocations: 3.687 MB / 0.5434 GB, free: 106.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000135/0.6275, allocations: 45.58 kB / 0.5434 GB, free: 106.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.6286, allocations: 2.858 MB / 0.5462 GB, free: 104.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003887/0.6289, allocations: 0.6683 MB / 0.5469 GB, free: 104 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/0.63, allocations: 1.123 MB / 0.548 GB, free: 103.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.685e-05/0.63, allocations: 309 kB / 0.5483 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/0.6321, allocations: 1.938 MB / 0.5502 GB, free: 102.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003356/0.6355, allocations: 5.37 MB / 0.5554 GB, free: 97.24 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006/0.6415, allocations: 7.92 MB / 0.5631 GB, free: 88.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.968e-05/0.6415, allocations: 36 kB / 0.5632 GB, free: 88.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01168/0.6532, allocations: 8.145 MB / 0.5711 GB, free: 80.15 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.371e-05/0.6533, allocations: 60.03 kB / 0.5712 GB, free: 80.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-05/0.6534, allocations: 120 kB / 0.5713 GB, free: 79.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003457/0.6568, allocations: 1.299 MB / 0.5726 GB, free: 78.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003186/0.66, allocations: 1.267 MB / 0.5738 GB, free: 77.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007039/0.667, allocations: 6.375 MB / 0.58 GB, free: 70.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00386/0.6709, allocations: 295.7 kB / 0.5803 GB, free: 70.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003901/0.6713, allocations: 344.8 kB / 0.5806 GB, free: 70.29 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 (681): * Single equations (assignments): 677 * 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.002439/0.6737, allocations: 1.811 MB / 0.5824 GB, free: 68.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006026/0.6743, allocations: 321.8 kB / 0.5827 GB, free: 68.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005942/0.6803, allocations: 3.354 MB / 0.586 GB, free: 64.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/0.6803, allocations: 20 kB / 0.586 GB, free: 64.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.6803, allocations: 4 kB / 0.586 GB, free: 64.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.6803, allocations: 7.969 kB / 0.586 GB, free: 64.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.6925, allocations: 7.248 MB / 0.5931 GB, free: 57.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/0.6925, allocations: 7.422 kB / 0.5931 GB, free: 57.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.6936, allocations: 235.7 kB / 0.5933 GB, free: 57.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003296/0.6969, allocations: 1.123 MB / 0.5944 GB, free: 56.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/0.697, allocations: 31.36 kB / 0.5944 GB, free: 56.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007031/0.7041, allocations: 6.01 MB / 0.6003 GB, free: 49.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.7041, allocations: 0 / 0.6003 GB, free: 49.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008616/0.7127, allocations: 5.719 MB / 0.6059 GB, free: 44.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/0.7137, allocations: 289.8 kB / 0.6062 GB, free: 43.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008039/0.7145, allocations: 20 kB / 0.6062 GB, free: 43.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/0.7162, allocations: 91.88 kB / 0.6063 GB, free: 43.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002981/0.7165, allocations: 92.81 kB / 0.6064 GB, free: 43.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.7166, allocations: 51.03 kB / 0.6064 GB, free: 43.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00366/0.7203, allocations: 2.146 MB / 0.6085 GB, free: 41.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7203, allocations: 0 / 0.6085 GB, free: 41.56 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005056/0.7254, allocations: 0.9178 MB / 0.6094 GB, free: 40.64 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.009486/0.7348, allocations: 6.357 MB / 0.6156 GB, free: 34.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007013/0.7419, allocations: 4.578 MB / 0.6201 GB, free: 29.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.7419, allocations: 4 kB / 0.6201 GB, free: 29.69 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001955/0.7438, allocations: 1.435 MB / 0.6215 GB, free: 28.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002931/0.7468, allocations: 367.6 kB / 0.6218 GB, free: 27.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06343/0.8102, allocations: 41.27 MB / 0.6621 GB, free: 13.35 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004426/0.8146, allocations: 2.31 MB / 0.6644 GB, free: 11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004335/0.8189, allocations: 1.703 MB / 0.6661 GB, free: 9.293 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002689/0.8216, allocations: 1.589 MB / 0.6676 GB, free: 7.703 MB / 478.1 MB Notification: Performance of SimCode: time 1.182e-06/0.8216, allocations: 0 / 0.6676 GB, free: 7.703 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.265/2.087, allocations: 60.95 MB / 0.7271 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.37/20.45, allocations: 14.75 kB / 0.7272 GB, free: 11.42 MB / 0.5294 GB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/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: 23.747099515981972]