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.001306/0.001306, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001465/0.001465, allocations: 211.9 kB / 23.73 MB, free: 4.387 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.336/1.336, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 179] 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.001496/0.001496, allocations: 47.92 kB / 377.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.205, allocations: 53.38 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0105/0.2155, allocations: 9.024 MB / 440.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006359/0.2219, allocations: 3.684 MB / 443.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006971/0.2226, allocations: 59.75 kB / 443.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003508/0.2261, allocations: 2.032 MB / 445.9 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003034/0.2291, allocations: 1.661 MB / 447.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.2303, allocations: 0.694 MB / 448.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003572/0.2339, allocations: 3.389 MB / 451.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002197/0.2361, allocations: 2.199 MB / 453.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.2375, allocations: 1.273 MB / 455.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002049/0.2395, allocations: 1.791 MB / 456.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004107/0.2399, allocations: 268 kB / 457.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001572/0.2415, allocations: 0.9986 MB / 458.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001313/0.2428, allocations: 1.609 MB / 459.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001253/0.2441, allocations: 1.363 MB / 461.1 MB, free: 8.441 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005459/0.2495, allocations: 5.942 MB / 467.1 MB, free: 2.477 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2495, allocations: 0 / 467.1 MB, free: 2.477 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2495, allocations: 0 / 467.1 MB, free: 2.477 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.504e-05/0.2496, allocations: 3.938 kB / 467.1 MB, free: 2.473 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.007413/0.257, allocations: 4.145 MB / 471.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.2571, allocations: 12.03 kB / 471.2 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008967/0.258, allocations: 0.6374 MB / 471.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006699/0.2647, allocations: 1.894 MB / 473.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004845/0.2695, allocations: 2.056 MB / 475.8 MB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/0.2697, allocations: 213.2 kB / 476 MB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006381/0.2703, allocations: 267.9 kB / 476.3 MB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01885/0.2892, allocations: 10.06 MB / 486.4 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.181e-05/0.2893, allocations: 35.69 kB / 486.4 MB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004297/0.2897, allocations: 135.9 kB / 486.5 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003242/0.293, allocations: 1.856 MB / 488.4 MB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01819/0.3111, allocations: 8.536 MB / 496.9 MB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04361/0.3548, allocations: 35.44 MB / 0.5199 GB, free: 15.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009205/0.364, allocations: 3.095 MB / 0.5229 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002383/0.3663, allocations: 1.689 MB / 0.5245 GB, free: 10.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/0.3766, allocations: 6.262 MB / 0.5307 GB, free: 4.199 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.3767, allocations: 47.56 kB / 0.5307 GB, free: 4.145 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.437e-06/0.3767, allocations: 0 / 0.5307 GB, free: 4.145 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2106/0.5873, allocations: 17.58 MB / 0.5479 GB, free: 99.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.5873, allocations: 144.9 kB / 0.548 GB, free: 99.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003105/0.5904, allocations: 3.681 MB / 0.5516 GB, free: 96.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.5905, allocations: 53.53 kB / 0.5517 GB, free: 96.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000894/0.5914, allocations: 2.841 MB / 0.5544 GB, free: 94.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003254/0.5917, allocations: 0.6774 MB / 0.5551 GB, free: 93.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009475/0.5927, allocations: 1.117 MB / 0.5562 GB, free: 92.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.978e-05/0.5927, allocations: 308.2 kB / 0.5565 GB, free: 92.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/0.5948, allocations: 1.955 MB / 0.5584 GB, free: 90.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002846/0.5976, allocations: 5.373 MB / 0.5636 GB, free: 83.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005346/0.603, allocations: 7.941 MB / 0.5714 GB, free: 73.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.011e-05/0.603, allocations: 32 kB / 0.5714 GB, free: 73.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01058/0.6136, allocations: 8.185 MB / 0.5794 GB, free: 65.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.206e-05/0.6136, allocations: 60 kB / 0.5795 GB, free: 65.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.826e-05/0.6137, allocations: 120 kB / 0.5796 GB, free: 65.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003257/0.617, allocations: 1.295 MB / 0.5809 GB, free: 64.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002851/0.6198, allocations: 1.264 MB / 0.5821 GB, free: 62.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006726/0.6265, allocations: 6.38 MB / 0.5883 GB, free: 56.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003166/0.6297, allocations: 311.7 kB / 0.5886 GB, free: 56.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003206/0.63, allocations: 339.9 kB / 0.5889 GB, free: 55.82 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.001794/0.6318, allocations: 1.813 MB / 0.5907 GB, free: 54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003749/0.6322, allocations: 321.8 kB / 0.591 GB, free: 53.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005769/0.638, allocations: 3.369 MB / 0.5943 GB, free: 50.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-05/0.638, allocations: 27.94 kB / 0.5943 GB, free: 50.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.638, allocations: 4 kB / 0.5943 GB, free: 50.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.638, allocations: 11.97 kB / 0.5943 GB, free: 50.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.6492, allocations: 7.252 MB / 0.6014 GB, free: 42.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.6492, allocations: 4 kB / 0.6014 GB, free: 42.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009834/0.6502, allocations: 251.6 kB / 0.6017 GB, free: 42.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003171/0.6534, allocations: 1.116 MB / 0.6028 GB, free: 41.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.666e-05/0.6535, allocations: 31.98 kB / 0.6028 GB, free: 41.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006497/0.66, allocations: 6.019 MB / 0.6087 GB, free: 35.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.66, allocations: 4.031 kB / 0.6087 GB, free: 35.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007626/0.6676, allocations: 5.754 MB / 0.6143 GB, free: 29.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005418/0.6681, allocations: 293.7 kB / 0.6146 GB, free: 29.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002911/0.6684, allocations: 24 kB / 0.6146 GB, free: 29.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.6695, allocations: 99.86 kB / 0.6147 GB, free: 29.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.6697, allocations: 93.83 kB / 0.6148 GB, free: 29.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.756e-05/0.6698, allocations: 47.09 kB / 0.6148 GB, free: 29.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002197/0.672, allocations: 2.15 MB / 0.6169 GB, free: 26.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.672, allocations: 0 / 0.6169 GB, free: 26.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003124/0.6752, allocations: 0.8906 MB / 0.6178 GB, free: 26.09 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.007802/0.683, allocations: 6.384 MB / 0.624 GB, free: 19.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005402/0.6884, allocations: 4.614 MB / 0.6285 GB, free: 15.08 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.6884, allocations: 4 kB / 0.6285 GB, free: 15.08 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001729/0.6901, allocations: 1.44 MB / 0.6299 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.6917, allocations: 356.6 kB / 0.6303 GB, free: 13.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05191/0.7436, allocations: 41.33 MB / 0.6706 GB, free: 14.67 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002893/0.7465, allocations: 2.296 MB / 0.6729 GB, free: 12.33 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003577/0.75, allocations: 1.695 MB / 0.6745 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/0.752, allocations: 1.585 MB / 0.6761 GB, free: 9.047 MB / 494.1 MB Notification: Performance of SimCode: time 9.52e-07/0.752, allocations: 3.938 kB / 0.6761 GB, free: 9.043 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.712/5.464, allocations: 60.77 MB / 0.7354 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.44/23.9, allocations: 13.25 kB / 0.7355 GB, free: 186.6 MB / 0.5294 GB " [Timeout remaining time 636] (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: 26.628478517290205]