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.001341/0.001341, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001548/0.001548, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 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 1.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 47.92 kB / 377.7 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2559, allocations: 53.35 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01215/0.268, allocations: 9.047 MB / 440.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008406/0.2764, allocations: 3.688 MB / 443.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001444/0.2779, allocations: 63.69 kB / 443.9 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004089/0.282, allocations: 2.02 MB / 445.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004553/0.2865, allocations: 1.654 MB / 447.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.2881, allocations: 0.6979 MB / 448.3 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004536/0.2926, allocations: 3.392 MB / 451.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002743/0.2954, allocations: 2.2 MB / 453.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001808/0.2972, allocations: 1.269 MB / 455.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00262/0.2998, allocations: 1.795 MB / 456.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006008/0.3004, allocations: 264 kB / 457.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001953/0.3024, allocations: 1.01 MB / 458.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001579/0.304, allocations: 1.593 MB / 459.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001781/0.3057, allocations: 1.374 MB / 461.1 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0073/0.313, allocations: 5.929 MB / 467.1 MB, free: 2.477 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.313, allocations: 0 / 467.1 MB, free: 2.477 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.313, allocations: 0 / 467.1 MB, free: 2.477 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001051/0.3131, allocations: 0 / 467.1 MB, free: 2.477 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.007601/0.3207, allocations: 4.161 MB / 471.2 MB, free: 14.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3208, allocations: 8.031 kB / 471.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008832/0.3217, allocations: 0.6413 MB / 471.9 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006736/0.3284, allocations: 1.886 MB / 473.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004878/0.3333, allocations: 2.06 MB / 475.8 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001804/0.3335, allocations: 205.2 kB / 476 MB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005708/0.334, allocations: 271.9 kB / 476.3 MB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01937/0.3534, allocations: 10.05 MB / 486.3 MB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/0.3535, allocations: 47.66 kB / 486.4 MB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003901/0.3539, allocations: 131.9 kB / 486.5 MB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003131/0.357, allocations: 1.86 MB / 488.4 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01858/0.3756, allocations: 8.548 MB / 496.9 MB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04821/0.4238, allocations: 35.44 MB / 0.5199 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009742/0.4336, allocations: 3.095 MB / 0.5229 GB, free: 12.19 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002497/0.4361, allocations: 1.691 MB / 0.5246 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.4475, allocations: 6.258 MB / 0.5307 GB, free: 4.188 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.844e-05/0.4475, allocations: 47.5 kB / 0.5307 GB, free: 4.133 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.628e-06/0.4476, allocations: 0 / 0.5307 GB, free: 4.133 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2453/0.6929, allocations: 17.58 MB / 0.5479 GB, free: 99.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.693, allocations: 145.1 kB / 0.548 GB, free: 99.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003766/0.6967, allocations: 3.676 MB / 0.5516 GB, free: 96.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001956/0.6969, allocations: 53.7 kB / 0.5517 GB, free: 96.92 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.6981, allocations: 2.846 MB / 0.5544 GB, free: 94.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004438/0.6986, allocations: 0.6673 MB / 0.5551 GB, free: 93.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009951/0.6996, allocations: 1.126 MB / 0.5562 GB, free: 92.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.895e-05/0.6996, allocations: 301.1 kB / 0.5565 GB, free: 92.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002173/0.7018, allocations: 1.963 MB / 0.5584 GB, free: 90.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003145/0.7049, allocations: 5.373 MB / 0.5636 GB, free: 83.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005906/0.7108, allocations: 7.933 MB / 0.5714 GB, free: 73.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.934e-05/0.7109, allocations: 36 kB / 0.5714 GB, free: 73.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01203/0.7229, allocations: 8.185 MB / 0.5794 GB, free: 65.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.077e-05/0.723, allocations: 60 kB / 0.5795 GB, free: 65.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001178/0.7231, allocations: 120 kB / 0.5796 GB, free: 65.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003458/0.7266, allocations: 1.293 MB / 0.5809 GB, free: 64.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003166/0.7297, allocations: 1.259 MB / 0.5821 GB, free: 62.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007014/0.7368, allocations: 6.385 MB / 0.5883 GB, free: 56.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/0.7404, allocations: 313.6 kB / 0.5886 GB, free: 56.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004424/0.7409, allocations: 339.9 kB / 0.5889 GB, free: 55.8 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.001998/0.7429, allocations: 1.81 MB / 0.5907 GB, free: 53.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004181/0.7433, allocations: 325.8 kB / 0.591 GB, free: 53.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005916/0.7492, allocations: 3.369 MB / 0.5943 GB, free: 50.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.7492, allocations: 20 kB / 0.5943 GB, free: 50.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.7492, allocations: 4 kB / 0.5943 GB, free: 50.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.7492, allocations: 7.984 kB / 0.5943 GB, free: 50.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.7607, allocations: 7.26 MB / 0.6014 GB, free: 42.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.7607, allocations: 0 / 0.6014 GB, free: 42.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.7617, allocations: 255.6 kB / 0.6017 GB, free: 42.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003253/0.765, allocations: 1.115 MB / 0.6028 GB, free: 41.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.7651, allocations: 27.98 kB / 0.6028 GB, free: 41.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006625/0.7717, allocations: 6.029 MB / 0.6087 GB, free: 35.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.7717, allocations: 0 / 0.6087 GB, free: 35.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007902/0.7796, allocations: 5.751 MB / 0.6143 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007342/0.7803, allocations: 289.7 kB / 0.6146 GB, free: 29.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003142/0.7806, allocations: 31.91 kB / 0.6146 GB, free: 29.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.7818, allocations: 95.86 kB / 0.6147 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.782, allocations: 92.81 kB / 0.6148 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.7821, allocations: 44.47 kB / 0.6148 GB, free: 29.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002346/0.7845, allocations: 2.154 MB / 0.6169 GB, free: 26.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7845, allocations: 0 / 0.6169 GB, free: 26.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003434/0.7879, allocations: 0.8906 MB / 0.6178 GB, free: 26.07 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.007926/0.7958, allocations: 6.384 MB / 0.624 GB, free: 19.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005875/0.8017, allocations: 4.615 MB / 0.6285 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.8017, allocations: 0 / 0.6285 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001801/0.8035, allocations: 1.444 MB / 0.6299 GB, free: 13.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/0.8054, allocations: 360.4 kB / 0.6303 GB, free: 13.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06207/0.8675, allocations: 41.33 MB / 0.6706 GB, free: 14.64 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003166/0.8707, allocations: 2.292 MB / 0.6729 GB, free: 12.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003807/0.8745, allocations: 1.699 MB / 0.6745 GB, free: 10.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002289/0.8768, allocations: 1.589 MB / 0.6761 GB, free: 9.012 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/0.8768, allocations: 0 / 0.6761 GB, free: 9.012 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3196/1.196, allocations: 60.78 MB / 0.7355 GB, free: 186.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/17.01, allocations: 3.812 kB / 0.7355 GB, free: 186.9 MB / 0.5294 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_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: 19.669104993809015]