Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 183.8 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002326, allocations: 47.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3106, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01348/0.3241, allocations: 10.78 MB / 433.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008552/0.3326, allocations: 3.919 MB / 437.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.3339, allocations: 71.62 kB / 437.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004322/0.3383, allocations: 2.273 MB / 439.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005025/0.3433, allocations: 1.887 MB / 441.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001695/0.345, allocations: 0.7136 MB / 442.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006269/0.3513, allocations: 4.233 MB / 446.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003398/0.3547, allocations: 2.454 MB / 449 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002476/0.3571, allocations: 1.495 MB / 450.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00355/0.3607, allocations: 2.262 MB / 452.7 MB, free: 376 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006335/0.3613, allocations: 292 kB / 453 MB, free: 84 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.3632, allocations: 0.983 MB / 454 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.3651, allocations: 1.862 MB / 455.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002369/0.3674, allocations: 2.105 MB / 458 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008062/0.3755, allocations: 6.47 MB / 464.4 MB, free: 4.617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.02e-05/0.3755, allocations: 3.984 kB / 464.4 MB, free: 4.613 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3755, allocations: 0 / 464.4 MB, free: 4.613 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002014/0.3757, allocations: 0 / 464.4 MB, free: 4.613 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.009732/0.3855, allocations: 4.668 MB / 469.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.3855, allocations: 8.031 kB / 469.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009541/0.3865, allocations: 0.699 MB / 469.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007114/0.3936, allocations: 1.967 MB / 471.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00683/0.4004, allocations: 2.838 MB / 474.6 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002217/0.4006, allocations: 225.6 kB / 474.8 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007698/0.4014, allocations: 299.8 kB / 475.1 MB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01671/0.4181, allocations: 9.631 MB / 484.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/0.4182, allocations: 47.58 kB / 484.8 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003787/0.4186, allocations: 151.8 kB / 485 MB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00293/0.4215, allocations: 1.919 MB / 486.9 MB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01544/0.437, allocations: 7.625 MB / 494.5 MB, free: 5.625 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04969/0.4866, allocations: 37.55 MB / 0.5196 GB, free: 14.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006447/0.4931, allocations: 2.32 MB / 0.5218 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/0.4944, allocations: 0.7963 MB / 0.5226 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006474/0.5009, allocations: 3.082 MB / 0.5256 GB, free: 8.629 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.948e-05/0.501, allocations: 51.16 kB / 0.5257 GB, free: 8.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.087e-06/0.501, allocations: 4 kB / 0.5257 GB, free: 8.566 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2398/0.7408, allocations: 9.09 MB / 0.5346 GB, free: 107.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.7408, allocations: 142.8 kB / 0.5347 GB, free: 107.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005442/0.7463, allocations: 3.949 MB / 0.5386 GB, free: 106.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002131/0.7465, allocations: 51.05 kB / 0.5386 GB, free: 106.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.7479, allocations: 3.213 MB / 0.5417 GB, free: 105 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003942/0.7482, allocations: 0.6255 MB / 0.5424 GB, free: 104.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009793/0.7492, allocations: 1.176 MB / 0.5435 GB, free: 104.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.968e-05/0.7493, allocations: 305.2 kB / 0.5438 GB, free: 103.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00197/0.7512, allocations: 1.561 MB / 0.5453 GB, free: 103.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002942/0.7542, allocations: 5.344 MB / 0.5505 GB, free: 97.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005371/0.7596, allocations: 7.512 MB / 0.5579 GB, free: 90.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.376e-05/0.7596, allocations: 37.44 kB / 0.5579 GB, free: 90.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.007943/0.7676, allocations: 6.631 MB / 0.5644 GB, free: 85.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.695e-05/0.7676, allocations: 64 kB / 0.5644 GB, free: 85.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-05/0.7677, allocations: 132 kB / 0.5646 GB, free: 85.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000107/0.7678, allocations: 176 kB / 0.5647 GB, free: 85.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003115/0.7709, allocations: 1.379 MB / 0.5661 GB, free: 84.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001206/0.7711, allocations: 262.8 kB / 0.5663 GB, free: 84.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003242/0.7743, allocations: 280 kB / 0.5666 GB, free: 83.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003379/0.7746, allocations: 365.4 kB / 0.567 GB, free: 83.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00233/0.777, allocations: 1.985 MB / 0.5689 GB, free: 81.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004744/0.7774, allocations: 353.6 kB / 0.5692 GB, free: 81.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.779, allocations: 1.242 MB / 0.5704 GB, free: 79.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.779, allocations: 16 kB / 0.5705 GB, free: 79.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.7791, allocations: 6.812 kB / 0.5705 GB, free: 79.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.7791, allocations: 7.969 kB / 0.5705 GB, free: 79.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006782/0.7859, allocations: 5.724 MB / 0.5761 GB, free: 73.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/0.7859, allocations: 18.41 kB / 0.5761 GB, free: 73.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008056/0.7867, allocations: 275.5 kB / 0.5763 GB, free: 73.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.781e-05/0.7867, allocations: 24 kB / 0.5764 GB, free: 73.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.088e-05/0.7867, allocations: 56.56 kB / 0.5764 GB, free: 73.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.729e-05/0.7868, allocations: 38.48 kB / 0.5765 GB, free: 73.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.7868, allocations: 31.81 kB / 0.5765 GB, free: 73.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.7894, allocations: 3.246 MB / 0.5797 GB, free: 69.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000685/0.7901, allocations: 345.5 kB / 0.58 GB, free: 69.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000276/0.7904, allocations: 51.98 kB / 0.58 GB, free: 69.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009505/0.7913, allocations: 55.97 kB / 0.5801 GB, free: 69.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.7915, allocations: 155.3 kB / 0.5802 GB, free: 69.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.116e-05/0.7915, allocations: 64.47 kB / 0.5803 GB, free: 69.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002709/0.7942, allocations: 2.45 MB / 0.5827 GB, free: 66.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7942, allocations: 0 / 0.5827 GB, free: 66.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004193/0.7984, allocations: 0.8632 MB / 0.5835 GB, free: 65.96 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003097/0.8015, allocations: 3.909 MB / 0.5874 GB, free: 61.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004863/0.8064, allocations: 3.521 MB / 0.5908 GB, free: 58.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/0.8064, allocations: 8.188 kB / 0.5908 GB, free: 58.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007357/0.8071, allocations: 0.6819 MB / 0.5915 GB, free: 57.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/0.8098, allocations: 456.4 kB / 0.5919 GB, free: 57.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04114/0.8509, allocations: 40.39 MB / 0.6313 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002333/0.8532, allocations: 3.095 MB / 0.6344 GB, free: 7.371 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003147/0.8564, allocations: 1.764 MB / 0.6361 GB, free: 5.598 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.8579, allocations: 1.792 MB / 0.6378 GB, free: 3.805 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.8579, allocations: 7.938 kB / 0.6379 GB, free: 3.797 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1247/0.9826, allocations: 61.17 MB / 0.6976 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.47/21.45, allocations: 14.84 kB / 0.6976 GB, free: 7.039 MB / 0.4981 GB " [Timeout remaining time 638] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.434359689010307]