Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001352/0.001352, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001498/0.001498, allocations: 213.4 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 64.08 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3059, allocations: 53.4 MB / 431.2 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01965/0.3255, allocations: 10.35 MB / 441.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.3395, allocations: 3.928 MB / 445.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002791/0.3423, allocations: 59.75 kB / 445.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007518/0.3498, allocations: 2.11 MB / 447.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007888/0.3577, allocations: 1.65 MB / 449.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.3606, allocations: 0.694 MB / 450 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008178/0.3688, allocations: 3.4 MB / 453.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004601/0.3734, allocations: 2.211 MB / 455.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002928/0.3763, allocations: 1.273 MB / 456.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004418/0.3808, allocations: 1.896 MB / 458.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008006/0.3816, allocations: 264 kB / 459 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003232/0.3848, allocations: 1.151 MB / 460.2 MB, free: 9.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002384/0.3872, allocations: 1.593 MB / 461.8 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003019/0.3902, allocations: 1.848 MB / 463.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007994/0.3982, allocations: 5.922 MB / 469.5 MB, free: 356 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3982, allocations: 0 / 469.5 MB, free: 356 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3982, allocations: 0 / 469.5 MB, free: 356 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001327/0.3983, allocations: 0 / 469.5 MB, free: 356 kB / 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.008976/0.4073, allocations: 4.153 MB / 473.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/0.4074, allocations: 8.031 kB / 473.7 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001068/0.4084, allocations: 0.6413 MB / 474.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006605/0.415, allocations: 1.89 MB / 476.2 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005244/0.4203, allocations: 2.04 MB / 478.3 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.4205, allocations: 209.1 kB / 478.5 MB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006964/0.4212, allocations: 275.8 kB / 478.7 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01846/0.4396, allocations: 10 MB / 488.7 MB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-05/0.4397, allocations: 35.69 kB / 488.8 MB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003675/0.4401, allocations: 135.9 kB / 488.9 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003164/0.4433, allocations: 1.852 MB / 490.8 MB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.4608, allocations: 8.575 MB / 499.3 MB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04719/0.508, allocations: 36.66 MB / 0.5234 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009785/0.5178, allocations: 3.1 MB / 0.5265 GB, free: 8.902 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002763/0.5205, allocations: 1.689 MB / 0.5281 GB, free: 7.199 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01194/0.5325, allocations: 6.632 MB / 0.5346 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.5325, allocations: 47.5 kB / 0.5346 GB, free: 480 kB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.158e-06/0.5325, allocations: 0 / 0.5346 GB, free: 480 kB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2542/0.7867, allocations: 17.5 MB / 0.5517 GB, free: 97.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.7868, allocations: 149.5 kB / 0.5519 GB, free: 97.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003729/0.7905, allocations: 3.479 MB / 0.5553 GB, free: 94.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002742/0.7908, allocations: 49.7 kB / 0.5553 GB, free: 94.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.7918, allocations: 2.846 MB / 0.5581 GB, free: 91.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005735/0.7924, allocations: 0.6726 MB / 0.5587 GB, free: 90.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.7935, allocations: 1.12 MB / 0.5598 GB, free: 89.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.292e-05/0.7935, allocations: 305.1 kB / 0.5601 GB, free: 89.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002363/0.7959, allocations: 1.959 MB / 0.562 GB, free: 87.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003272/0.7991, allocations: 5.373 MB / 0.5673 GB, free: 80.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006323/0.8055, allocations: 7.943 MB / 0.575 GB, free: 70.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.049e-05/0.8055, allocations: 32 kB / 0.5751 GB, free: 70.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01334/0.8189, allocations: 8.177 MB / 0.5831 GB, free: 62.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.183e-05/0.8189, allocations: 60 kB / 0.5831 GB, free: 62.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/0.8191, allocations: 120 kB / 0.5832 GB, free: 62.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003491/0.8226, allocations: 1.299 MB / 0.5845 GB, free: 61.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0037/0.8263, allocations: 1.261 MB / 0.5857 GB, free: 59.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007217/0.8335, allocations: 6.447 MB / 0.592 GB, free: 53.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003808/0.8373, allocations: 311.6 kB / 0.5923 GB, free: 52.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005606/0.8378, allocations: 336 kB / 0.5926 GB, free: 52.59 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.002289/0.8401, allocations: 1.815 MB / 0.5944 GB, free: 50.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000526/0.8407, allocations: 317.8 kB / 0.5947 GB, free: 50.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005995/0.8466, allocations: 3.377 MB / 0.598 GB, free: 47.06 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/0.8467, allocations: 27.66 kB / 0.598 GB, free: 47.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.8467, allocations: 4 kB / 0.598 GB, free: 47.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.8467, allocations: 3.984 kB / 0.5981 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.8583, allocations: 7.552 MB / 0.6054 GB, free: 39.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.8584, allocations: 0 / 0.6054 GB, free: 39.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.8594, allocations: 243.7 kB / 0.6057 GB, free: 39.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003213/0.8626, allocations: 1.116 MB / 0.6067 GB, free: 38.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001631/0.8628, allocations: 27.98 kB / 0.6068 GB, free: 38.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006745/0.8695, allocations: 6.077 MB / 0.6127 GB, free: 31.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.8695, allocations: 0 / 0.6127 GB, free: 31.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008042/0.8776, allocations: 5.75 MB / 0.6183 GB, free: 26.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008156/0.8784, allocations: 289.7 kB / 0.6186 GB, free: 25.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003348/0.8787, allocations: 32 kB / 0.6186 GB, free: 25.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.8799, allocations: 95.86 kB / 0.6187 GB, free: 25.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.8801, allocations: 88.83 kB / 0.6188 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.8802, allocations: 47.73 kB / 0.6189 GB, free: 25.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002383/0.8826, allocations: 2.146 MB / 0.6209 GB, free: 23.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8826, allocations: 0 / 0.6209 GB, free: 23.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0035/0.8861, allocations: 0.8906 MB / 0.6218 GB, free: 22.54 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.00798/0.8941, allocations: 6.403 MB / 0.6281 GB, free: 16.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006124/0.9002, allocations: 4.613 MB / 0.6326 GB, free: 11.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.9002, allocations: 7.938 kB / 0.6326 GB, free: 11.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.902, allocations: 1.456 MB / 0.634 GB, free: 10.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/0.9039, allocations: 356.4 kB / 0.6343 GB, free: 9.695 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06528/0.9692, allocations: 41.32 MB / 0.6747 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003672/0.9729, allocations: 2.854 MB / 0.6775 GB, free: 8.188 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004066/0.9769, allocations: 1.699 MB / 0.6791 GB, free: 6.484 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002227/0.9791, allocations: 1.585 MB / 0.6807 GB, free: 4.898 MB / 494.1 MB Notification: Performance of SimCode: time 2.074e-06/0.9791, allocations: 0 / 0.6807 GB, free: 4.898 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3748/1.354, allocations: 65.11 MB / 0.7443 GB, free: 184.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.64/21.99, allocations: 7.969 kB / 0.7443 GB, free: 184.1 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0019992 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 24.648470129999623]