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.001301/0.001301, allocations: 112.2 kB / 21.22 MB, free: 0.7266 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.001424/0.001424, allocations: 208.2 kB / 24.52 MB, free: 4.066 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.364/1.364, allocations: 230.6 MB / 258.3 MB, free: 7.996 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 47.92 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2157, allocations: 53.37 MB / 431.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01134/0.227, allocations: 10.33 MB / 442.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007179/0.2342, allocations: 3.933 MB / 446.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001091/0.2353, allocations: 67.69 kB / 446.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003723/0.239, allocations: 2.106 MB / 448.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003586/0.2426, allocations: 1.646 MB / 450 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001362/0.244, allocations: 0.6978 MB / 450.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004044/0.248, allocations: 3.392 MB / 454.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002416/0.2504, allocations: 2.212 MB / 456.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/0.252, allocations: 1.269 MB / 457.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002225/0.2542, allocations: 1.904 MB / 459.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004085/0.2546, allocations: 264 kB / 459.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.2564, allocations: 1.147 MB / 460.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.2578, allocations: 1.597 MB / 462.5 MB, free: 8.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001584/0.2593, allocations: 1.848 MB / 464.3 MB, free: 6.266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005705/0.265, allocations: 5.925 MB / 470.3 MB, free: 324 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2651, allocations: 0 / 470.3 MB, free: 324 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2651, allocations: 0 / 470.3 MB, free: 324 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.615e-05/0.2651, allocations: 4 kB / 470.3 MB, free: 320 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.006598/0.2717, allocations: 4.148 MB / 474.4 MB, free: 12.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2717, allocations: 12.03 kB / 474.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.314e-05/0.2718, allocations: 93.52 kB / 474.5 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007023/0.2725, allocations: 0.6374 MB / 475.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006444/0.279, allocations: 1.89 MB / 477.1 MB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004197/0.2832, allocations: 2.048 MB / 479.1 MB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.2833, allocations: 209.2 kB / 479.3 MB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005549/0.2839, allocations: 263.9 kB / 479.6 MB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01699/0.3009, allocations: 10 MB / 489.6 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.459e-05/0.301, allocations: 39.67 kB / 489.6 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003344/0.3013, allocations: 139.9 kB / 489.7 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002951/0.3043, allocations: 1.852 MB / 491.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01637/0.3206, allocations: 8.563 MB / 0.4884 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.041/0.3616, allocations: 36.66 MB / 0.5242 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009046/0.3707, allocations: 3.098 MB / 0.5273 GB, free: 8.785 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002232/0.3729, allocations: 1.697 MB / 0.5289 GB, free: 7.078 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01/0.3829, allocations: 6.632 MB / 0.5354 GB, free: 412 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.73e-05/0.383, allocations: 51.56 kB / 0.5354 GB, free: 352 kB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.045e-06/0.383, allocations: 0 / 0.5354 GB, free: 352 kB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2025/0.5854, allocations: 17.5 MB / 0.5525 GB, free: 97.74 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.5854, allocations: 149.5 kB / 0.5527 GB, free: 97.56 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002914/0.5884, allocations: 3.477 MB / 0.5561 GB, free: 94.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.5885, allocations: 49.7 kB / 0.5561 GB, free: 94.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008697/0.5893, allocations: 2.844 MB / 0.5589 GB, free: 91.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003186/0.5896, allocations: 0.6766 MB / 0.5596 GB, free: 90.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009407/0.5906, allocations: 1.124 MB / 0.5607 GB, free: 89.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.006e-05/0.5906, allocations: 301.1 kB / 0.5609 GB, free: 89.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/0.5927, allocations: 1.951 MB / 0.5628 GB, free: 87.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002803/0.5955, allocations: 5.373 MB / 0.5681 GB, free: 80.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005191/0.6007, allocations: 7.951 MB / 0.5759 GB, free: 70.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.571e-05/0.6007, allocations: 39.98 kB / 0.5759 GB, free: 70.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01074/0.6114, allocations: 8.17 MB / 0.5839 GB, free: 62.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.246e-05/0.6115, allocations: 56 kB / 0.5839 GB, free: 62.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.429e-05/0.6116, allocations: 120 kB / 0.584 GB, free: 62.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003367/0.6149, allocations: 1.3 MB / 0.5853 GB, free: 61.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0031/0.618, allocations: 1.267 MB / 0.5865 GB, free: 59.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006646/0.6247, allocations: 6.447 MB / 0.5928 GB, free: 53.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003523/0.6282, allocations: 311.6 kB / 0.5931 GB, free: 52.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004834/0.6287, allocations: 345.7 kB / 0.5935 GB, free: 52.6 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.001774/0.6304, allocations: 1.803 MB / 0.5952 GB, free: 50.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003675/0.6308, allocations: 321.8 kB / 0.5955 GB, free: 50.47 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005735/0.6365, allocations: 3.369 MB / 0.5988 GB, free: 47.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/0.6366, allocations: 24 kB / 0.5989 GB, free: 47.06 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.6366, allocations: 4 kB / 0.5989 GB, free: 47.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.6366, allocations: 11.97 kB / 0.5989 GB, free: 47.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.6471, allocations: 7.549 MB / 0.6062 GB, free: 39.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.6471, allocations: 4 kB / 0.6062 GB, free: 39.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009881/0.6481, allocations: 243.7 kB / 0.6065 GB, free: 39.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003154/0.6512, allocations: 1.124 MB / 0.6076 GB, free: 38.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.6513, allocations: 24 kB / 0.6076 GB, free: 38.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006284/0.6576, allocations: 6.071 MB / 0.6135 GB, free: 31.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6576, allocations: 4.031 kB / 0.6135 GB, free: 31.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007577/0.6652, allocations: 5.743 MB / 0.6191 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005798/0.6658, allocations: 293.6 kB / 0.6194 GB, free: 25.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003069/0.6661, allocations: 27.75 kB / 0.6194 GB, free: 25.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.6672, allocations: 103.9 kB / 0.6195 GB, free: 25.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.6674, allocations: 94.61 kB / 0.6196 GB, free: 25.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.6675, allocations: 43.98 kB / 0.6197 GB, free: 25.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002194/0.6697, allocations: 2.142 MB / 0.6218 GB, free: 23.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6697, allocations: 0 / 0.6218 GB, free: 23.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003339/0.6731, allocations: 0.9022 MB / 0.6226 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.007671/0.6807, allocations: 6.396 MB / 0.6289 GB, free: 16.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005698/0.6864, allocations: 4.602 MB / 0.6334 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.6864, allocations: 0 / 0.6334 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/0.6882, allocations: 1.461 MB / 0.6348 GB, free: 10.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/0.69, allocations: 358.4 kB / 0.6352 GB, free: 9.711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05481/0.7448, allocations: 41.33 MB / 0.6755 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002928/0.7477, allocations: 2.85 MB / 0.6783 GB, free: 8.211 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003434/0.7512, allocations: 1.696 MB / 0.68 GB, free: 6.512 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/0.7531, allocations: 1.581 MB / 0.6815 GB, free: 4.93 MB / 494.1 MB Notification: Performance of SimCode: time 7.42e-07/0.7531, allocations: 4 kB / 0.6815 GB, free: 4.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9173/1.67, allocations: 65.15 MB / 0.7451 GB, free: 184 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.26/20.93, allocations: 10.38 kB / 0.7451 GB, free: 184 MB / 0.5294 GB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 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.mat","/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: 24.234964753035456]