Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001847/0.001847, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.001427/0.001427, allocations: 187.5 kB / 23.7 MB, free: 4.188 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.42/1.42, allocations: 225.7 MB / 252.5 MB, free: 12.85 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.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 47.92 kB / 370.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3165, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009632/0.3261, allocations: 6.603 MB / 429.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00721/0.3333, allocations: 3.071 MB / 432.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.3343, allocations: 39.81 kB / 432.3 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002287/0.3366, allocations: 1.008 MB / 433.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003443/0.3401, allocations: 1.401 MB / 434.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.3411, allocations: 467.1 kB / 435.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003481/0.3446, allocations: 2.628 MB / 437.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.3462, allocations: 1.326 MB / 439.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001109/0.3473, allocations: 0.8603 MB / 440 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/0.349, allocations: 1.285 MB / 441.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002878/0.3492, allocations: 172 kB / 441.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001665/0.3509, allocations: 0.936 MB / 442.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.3519, allocations: 1.133 MB / 443.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009989/0.3529, allocations: 0.9548 MB / 444.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004762/0.3577, allocations: 4.392 MB / 448.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3577, allocations: 0 / 448.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3577, allocations: 0 / 448.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.181e-05/0.3578, allocations: 0 / 448.8 MB, free: 3.996 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.007049/0.3649, allocations: 3.064 MB / 451.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.3649, allocations: 8.031 kB / 451.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007865/0.3657, allocations: 478.9 kB / 452.4 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007237/0.3729, allocations: 1.754 MB / 454.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00534/0.3783, allocations: 1.668 MB / 455.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.3784, allocations: 131.3 kB / 455.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.3795, allocations: 259.7 kB / 456.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/0.3939, allocations: 6.689 MB / 462.9 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-05/0.394, allocations: 31.7 kB / 462.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003076/0.3943, allocations: 87.89 kB / 463 MB, free: 5.293 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002451/0.3967, allocations: 1.363 MB / 464.3 MB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.4103, allocations: 6.013 MB / 470.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0365/0.4468, allocations: 24.56 MB / 494.9 MB, free: 4.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.4573, allocations: 2.149 MB / 497.1 MB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001813/0.4591, allocations: 0.9921 MB / 498.1 MB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006511/0.4656, allocations: 2.707 MB / 0.489 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.076e-05/0.4657, allocations: 43.06 kB / 0.4891 GB, free: 14.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.499e-06/0.4657, allocations: 0 / 0.4891 GB, free: 14.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02914/0.4948, allocations: 10.13 MB / 0.499 GB, free: 4.414 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001648/0.4965, allocations: 1.564 MB / 0.5005 GB, free: 2.688 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004697/0.5012, allocations: 2.912 MB / 0.5033 GB, free: 15.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002894/0.5014, allocations: 41.7 kB / 0.5034 GB, free: 15.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001997/0.5034, allocations: 2.179 MB / 0.5055 GB, free: 13.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007902/0.5042, allocations: 0.5351 MB / 0.506 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001441/0.5057, allocations: 0.9055 MB / 0.5069 GB, free: 12.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.5059, allocations: 305.1 kB / 0.5072 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002926/0.5088, allocations: 1.621 MB / 0.5088 GB, free: 10.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00566/0.5144, allocations: 4.425 MB / 0.5131 GB, free: 4.285 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00969/0.5241, allocations: 6.493 MB / 0.5194 GB, free: 12.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.146e-05/0.5242, allocations: 28 kB / 0.5195 GB, free: 12.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01697/0.5412, allocations: 7.043 MB / 0.5263 GB, free: 5.312 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.734e-05/0.5413, allocations: 48.19 kB / 0.5264 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007502/0.5488, allocations: 2.528 MB / 0.5289 GB, free: 2.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008706/0.5575, allocations: 1.497 MB / 0.5303 GB, free: 1.227 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005541/0.563, allocations: 1.006 MB / 0.5313 GB, free: 224 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01819/0.5812, allocations: 7.506 MB / 0.5386 GB, free: 8.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004907/0.5861, allocations: 327.7 kB / 0.5389 GB, free: 8.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009224/0.5871, allocations: 280 kB / 0.5392 GB, free: 7.887 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002982/0.59, allocations: 1.427 MB / 0.5406 GB, free: 6.449 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000602/0.5906, allocations: 246.4 kB / 0.5408 GB, free: 6.207 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007217/0.5979, allocations: 2.823 MB / 0.5436 GB, free: 3.355 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006552/0.6044, allocations: 2.501 MB / 0.546 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.586e-05/0.6044, allocations: 4 kB / 0.546 GB, free: 0.832 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.842e-05/0.6045, allocations: 3.984 kB / 0.5461 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2629/0.8674, allocations: 6.519 MB / 0.5524 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/0.8674, allocations: 2.562 kB / 0.5524 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008592/0.8683, allocations: 175.2 kB / 0.5526 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00445/0.8727, allocations: 1.439 MB / 0.554 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/0.8729, allocations: 34.5 kB / 0.554 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008679/0.8816, allocations: 7.657 MB / 0.5615 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007922/0.8824, allocations: 1.431 MB / 0.5629 GB, free: 113.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007988/0.8904, allocations: 4.862 MB / 0.5676 GB, free: 111.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009556/0.8913, allocations: 227.5 kB / 0.5679 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003659/0.8917, allocations: 23.98 kB / 0.5679 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.8929, allocations: 111.7 kB / 0.568 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002571/0.8932, allocations: 92.36 kB / 0.5681 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.15e-05/0.8933, allocations: 39.97 kB / 0.5681 GB, free: 110.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002144/0.8954, allocations: 1.693 MB / 0.5698 GB, free: 109.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8954, allocations: 0 / 0.5698 GB, free: 109.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003508/0.8989, allocations: 0.7644 MB / 0.5705 GB, free: 108.4 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007764/0.9067, allocations: 5.491 MB / 0.5759 GB, free: 103 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007031/0.9137, allocations: 4.123 MB / 0.5799 GB, free: 98.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.9137, allocations: 0 / 0.5799 GB, free: 98.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002906/0.9166, allocations: 1.584 MB / 0.5815 GB, free: 97.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/0.9193, allocations: 264.4 kB / 0.5817 GB, free: 97.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0525/0.9718, allocations: 33.8 MB / 0.6147 GB, free: 59.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002749/0.9745, allocations: 1.721 MB / 0.6164 GB, free: 57.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002863/0.9774, allocations: 1.412 MB / 0.6178 GB, free: 56.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001558/0.979, allocations: 1.116 MB / 0.6189 GB, free: 55.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.894e-06/0.979, allocations: 0 / 0.6189 GB, free: 55.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.118/1.097, allocations: 49.2 MB / 0.6669 GB, free: 6.586 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.51/16.61, allocations: 5.516 kB / 0.6669 GB, free: 6.586 MB / 462.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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: 19.627983937971294]