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.001395/0.001395, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001512/0.001512, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.492/1.492, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001726/0.001726, allocations: 51.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1107, allocations: 53.34 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2174/0.3281, allocations: 10.29 MB / 436.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007232/0.3353, allocations: 3.897 MB / 440.5 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.3366, allocations: 65.03 kB / 440.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003668/0.3403, allocations: 2.107 MB / 442.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003933/0.3442, allocations: 1.64 MB / 444.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002068/0.3463, allocations: 0.6946 MB / 445 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005192/0.3515, allocations: 3.386 MB / 448.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003115/0.3546, allocations: 2.3 MB / 450.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002436/0.357, allocations: 1.269 MB / 452 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002898/0.3599, allocations: 1.9 MB / 453.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006024/0.3605, allocations: 265.5 kB / 454.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00244/0.363, allocations: 1.147 MB / 455.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001673/0.3646, allocations: 1.602 MB / 456.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002159/0.3668, allocations: 1.85 MB / 458.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0086/0.3754, allocations: 5.919 MB / 464.7 MB, free: 7.539 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3754, allocations: 0 / 464.7 MB, free: 7.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3754, allocations: 0 / 464.7 MB, free: 7.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002452/0.3757, allocations: 1.438 kB / 464.7 MB, free: 7.539 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.009512/0.3852, allocations: 4.228 MB / 468.9 MB, free: 4.539 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.3852, allocations: 13.7 kB / 468.9 MB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001009/0.3862, allocations: 0.6388 MB / 469.5 MB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006982/0.3932, allocations: 1.885 MB / 471.4 MB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004814/0.398, allocations: 2.12 MB / 473.5 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.3982, allocations: 205.2 kB / 473.7 MB, free: 1.184 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005889/0.3988, allocations: 267.9 kB / 474 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02165/0.4204, allocations: 10.01 MB / 484 MB, free: 6.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.4205, allocations: 35.69 kB / 484 MB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004077/0.421, allocations: 137.5 kB / 484.2 MB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003389/0.4243, allocations: 1.848 MB / 486 MB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01959/0.4439, allocations: 8.565 MB / 494.6 MB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05156/0.4955, allocations: 36.76 MB / 0.5189 GB, free: 5.875 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01101/0.5065, allocations: 3.773 MB / 0.5226 GB, free: 1.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002765/0.5093, allocations: 1.701 MB / 0.5242 GB, free: 200 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01317/0.5224, allocations: 7.613 MB / 0.5317 GB, free: 8.285 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.453e-05/0.5225, allocations: 51.56 kB / 0.5317 GB, free: 8.227 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.809e-06/0.5225, allocations: 0 / 0.5317 GB, free: 8.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.06151/0.584, allocations: 17.74 MB / 0.5491 GB, free: 6.387 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.5841, allocations: 145.5 kB / 0.5492 GB, free: 6.215 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006098/0.5902, allocations: 3.482 MB / 0.5526 GB, free: 2.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004409/0.5907, allocations: 45.7 kB / 0.5526 GB, free: 2.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/0.593, allocations: 2.842 MB / 0.5554 GB, free: 15.81 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001063/0.594, allocations: 0.6707 MB / 0.5561 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001643/0.5957, allocations: 1.123 MB / 0.5572 GB, free: 14 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.5958, allocations: 308.9 kB / 0.5575 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003259/0.5991, allocations: 1.955 MB / 0.5594 GB, free: 11.74 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006605/0.6057, allocations: 5.381 MB / 0.5646 GB, free: 4.641 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/0.617, allocations: 7.933 MB / 0.5724 GB, free: 11.01 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000107/0.6171, allocations: 36 kB / 0.5724 GB, free: 10.97 MB / 494.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01997/0.6371, allocations: 8.184 MB / 0.5804 GB, free: 2.785 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001881/0.6373, allocations: 56 kB / 0.5805 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003319/0.6376, allocations: 120 kB / 0.5806 GB, free: 2.613 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004706/0.6423, allocations: 1.297 MB / 0.5818 GB, free: 1.312 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004649/0.647, allocations: 1.263 MB / 0.5831 GB, free: 48 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/0.6582, allocations: 6.547 MB / 0.5895 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004561/0.6627, allocations: 303.7 kB / 0.5898 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/0.6638, allocations: 343.8 kB / 0.5901 GB, free: 8.727 MB / 0.4981 GB 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.004099/0.6679, allocations: 1.815 MB / 0.5919 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009004/0.6688, allocations: 321.8 kB / 0.5922 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008778/0.6775, allocations: 3.369 MB / 0.5954 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.655e-05/0.6776, allocations: 16 kB / 0.5955 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.223e-05/0.6776, allocations: 17.11 kB / 0.5955 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.6776, allocations: 3.984 kB / 0.5955 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01888/0.6965, allocations: 7.571 MB / 0.6029 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/0.6965, allocations: 4 kB / 0.6029 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/0.6977, allocations: 251.6 kB / 0.6031 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00399/0.7017, allocations: 1.116 MB / 0.6042 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002197/0.7019, allocations: 31.98 kB / 0.6042 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009453/0.7114, allocations: 6.175 MB / 0.6103 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.7114, allocations: 3.984 kB / 0.6103 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2138/0.9252, allocations: 5.739 MB / 0.6159 GB, free: 163.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007846/0.926, allocations: 371.7 kB / 0.6162 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003786/0.9264, allocations: 28.59 kB / 0.6163 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/0.9277, allocations: 95.92 kB / 0.6164 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000269/0.928, allocations: 87.66 kB / 0.6164 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.9281, allocations: 43.64 kB / 0.6165 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003504/0.9316, allocations: 2.149 MB / 0.6186 GB, free: 163.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.9316, allocations: 0 / 0.6186 GB, free: 163.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004469/0.9361, allocations: 0.8928 MB / 0.6195 GB, free: 163.2 MB / 0.5137 GB 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.01051/0.9466, allocations: 6.39 MB / 0.6257 GB, free: 160.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008352/0.9549, allocations: 4.617 MB / 0.6302 GB, free: 159.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.9549, allocations: 0 / 0.6302 GB, free: 159.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00243/0.9574, allocations: 1.449 MB / 0.6316 GB, free: 158.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/0.9599, allocations: 354.6 kB / 0.632 GB, free: 158.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05264/1.013, allocations: 41.27 MB / 0.6723 GB, free: 126.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002392/1.015, allocations: 2.853 MB / 0.675 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003045/1.018, allocations: 1.695 MB / 0.6767 GB, free: 122.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/1.02, allocations: 1.588 MB / 0.6782 GB, free: 120.5 MB / 0.5137 GB Notification: Performance of SimCode: time 6.21e-07/1.02, allocations: 0 / 0.6782 GB, free: 120.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/1.12, allocations: 60.56 MB / 0.7374 GB, free: 60.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.95/21.07, allocations: 14.77 kB / 0.7374 GB, free: 60.37 MB / 0.5137 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.134691874030977]