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.00125/0.00125, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00137/0.00137, allocations: 206.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.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001526/0.001526, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.25, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01064/0.2607, allocations: 9.046 MB / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007701/0.2684, allocations: 3.676 MB / 443.8 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.2699, allocations: 63.75 kB / 443.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004154/0.2741, allocations: 2.024 MB / 445.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.2785, allocations: 1.654 MB / 447.6 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001603/0.2801, allocations: 0.7018 MB / 448.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004886/0.285, allocations: 3.393 MB / 451.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003015/0.288, allocations: 2.213 MB / 453.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002436/0.2904, allocations: 1.273 MB / 455.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003054/0.2935, allocations: 1.904 MB / 457 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005978/0.2941, allocations: 260 kB / 457.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002054/0.2961, allocations: 1.018 MB / 458.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001783/0.2979, allocations: 1.597 MB / 459.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00152/0.2994, allocations: 1.37 MB / 461.3 MB, free: 8.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005832/0.3053, allocations: 5.941 MB / 467.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3053, allocations: 0 / 467.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3053, allocations: 0 / 467.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.756e-05/0.3053, allocations: 0 / 467.2 MB, free: 2.355 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.006768/0.3121, allocations: 4.157 MB / 471.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.3121, allocations: 8.031 kB / 471.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007657/0.3129, allocations: 0.6413 MB / 472 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006353/0.3193, allocations: 1.886 MB / 473.9 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00504/0.3243, allocations: 2.06 MB / 476 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.3245, allocations: 205.2 kB / 476.2 MB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000605/0.3251, allocations: 263.9 kB / 476.4 MB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0192/0.3443, allocations: 10.06 MB / 486.5 MB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.3444, allocations: 35.67 kB / 486.5 MB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004008/0.3448, allocations: 135.9 kB / 486.7 MB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002964/0.3478, allocations: 1.848 MB / 488.5 MB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01723/0.365, allocations: 8.544 MB / 497 MB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04443/0.4094, allocations: 35.44 MB / 0.52 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009198/0.4186, allocations: 3.095 MB / 0.523 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002353/0.421, allocations: 1.693 MB / 0.5247 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/0.4329, allocations: 6.262 MB / 0.5308 GB, free: 4.082 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.867e-05/0.433, allocations: 59.42 kB / 0.5309 GB, free: 4.016 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.15e-06/0.433, allocations: 0 / 0.5309 GB, free: 4.016 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.239/0.672, allocations: 17.56 MB / 0.548 GB, free: 99.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.522e-05/0.6721, allocations: 151.4 kB / 0.5481 GB, free: 99.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003774/0.6758, allocations: 3.68 MB / 0.5517 GB, free: 96.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002193/0.6761, allocations: 52.25 kB / 0.5518 GB, free: 96.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.6772, allocations: 2.843 MB / 0.5546 GB, free: 94.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004411/0.6777, allocations: 0.672 MB / 0.5552 GB, free: 93.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001023/0.6787, allocations: 1.12 MB / 0.5563 GB, free: 92.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.374e-05/0.6787, allocations: 301.1 kB / 0.5566 GB, free: 92.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/0.6808, allocations: 1.959 MB / 0.5585 GB, free: 90.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002851/0.6836, allocations: 5.377 MB / 0.5638 GB, free: 83.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005404/0.689, allocations: 7.934 MB / 0.5715 GB, free: 73.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.565e-05/0.6891, allocations: 36 kB / 0.5715 GB, free: 73.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01126/0.7004, allocations: 8.186 MB / 0.5795 GB, free: 65.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.481e-05/0.7004, allocations: 56 kB / 0.5796 GB, free: 65.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-05/0.7005, allocations: 124 kB / 0.5797 GB, free: 65.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/0.7041, allocations: 1.296 MB / 0.581 GB, free: 64.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003618/0.7077, allocations: 1.267 MB / 0.5822 GB, free: 62.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006937/0.7146, allocations: 6.386 MB / 0.5885 GB, free: 56.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00453/0.7192, allocations: 303.7 kB / 0.5887 GB, free: 56.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007474/0.7199, allocations: 343.9 kB / 0.5891 GB, free: 55.71 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.002281/0.7222, allocations: 1.817 MB / 0.5908 GB, free: 53.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005644/0.7227, allocations: 317.8 kB / 0.5911 GB, free: 53.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006033/0.7288, allocations: 3.369 MB / 0.5944 GB, free: 50.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.331e-05/0.7288, allocations: 23.28 kB / 0.5945 GB, free: 50.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.7288, allocations: 8 kB / 0.5945 GB, free: 50.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.7288, allocations: 7.922 kB / 0.5945 GB, free: 50.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/0.741, allocations: 7.259 MB / 0.6016 GB, free: 42.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.741, allocations: 0 / 0.6016 GB, free: 42.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.7421, allocations: 251.6 kB / 0.6018 GB, free: 42.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003262/0.7453, allocations: 1.109 MB / 0.6029 GB, free: 41.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.7454, allocations: 39.45 kB / 0.6029 GB, free: 41.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006394/0.7518, allocations: 6.021 MB / 0.6088 GB, free: 35.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7518, allocations: 4 kB / 0.6088 GB, free: 35.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007819/0.7596, allocations: 5.746 MB / 0.6144 GB, free: 29.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008975/0.7605, allocations: 297.7 kB / 0.6147 GB, free: 29.28 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003614/0.7609, allocations: 20 kB / 0.6147 GB, free: 29.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.7622, allocations: 103.9 kB / 0.6148 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.7624, allocations: 92.81 kB / 0.6149 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.7625, allocations: 44 kB / 0.615 GB, free: 29.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00275/0.7653, allocations: 2.146 MB / 0.617 GB, free: 26.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.7653, allocations: 4 kB / 0.6171 GB, free: 26.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004858/0.7702, allocations: 0.8944 MB / 0.6179 GB, free: 26 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.008778/0.7789, allocations: 6.384 MB / 0.6242 GB, free: 19.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006435/0.7854, allocations: 4.614 MB / 0.6287 GB, free: 14.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.7854, allocations: 0 / 0.6287 GB, free: 14.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001889/0.7873, allocations: 1.452 MB / 0.6301 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/0.7898, allocations: 361.5 kB / 0.6304 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05866/0.8485, allocations: 41.32 MB / 0.6708 GB, free: 14.56 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002723/0.8512, allocations: 2.296 MB / 0.673 GB, free: 12.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003597/0.8548, allocations: 1.703 MB / 0.6747 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002056/0.8569, allocations: 1.585 MB / 0.6762 GB, free: 8.934 MB / 494.1 MB Notification: Performance of SimCode: time 7.82e-07/0.8569, allocations: 0 / 0.6762 GB, free: 8.934 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.152/2.009, allocations: 63.13 MB / 0.7379 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/17.82, allocations: 9.875 kB / 0.7379 GB, free: 187.4 MB / 0.5294 GB " [Timeout remaining time 642] (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: 20.792538284003967]