Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.00121/0.00121, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001363/0.001363, allocations: 202.2 kB / 24.52 MB, free: 4.156 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.35/1.35, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.SpringWithMass,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 47.94 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2423, allocations: 53.37 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008816/0.2511, allocations: 7.473 MB / 439.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005983/0.2571, allocations: 3.297 MB / 442.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008185/0.2579, allocations: 43.81 kB / 442.7 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00205/0.2599, allocations: 1.047 MB / 443.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002927/0.2629, allocations: 1.37 MB / 445.2 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009419/0.2638, allocations: 455.1 kB / 445.6 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003403/0.2672, allocations: 2.668 MB / 448.3 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001673/0.2689, allocations: 1.328 MB / 449.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.27, allocations: 0.8525 MB / 450.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001691/0.2717, allocations: 1.328 MB / 451.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003362/0.272, allocations: 172 kB / 452 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001745/0.2738, allocations: 1.053 MB / 453 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.2748, allocations: 1.122 MB / 454.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001231/0.276, allocations: 1.293 MB / 455.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004733/0.2807, allocations: 4.346 MB / 459.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.2807, allocations: 0 / 459.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2807, allocations: 0 / 459.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001095/0.2809, allocations: 0 / 459.8 MB, free: 10.9 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.00654/0.2874, allocations: 3.045 MB / 462.8 MB, free: 7.812 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.2874, allocations: 12.03 kB / 462.8 MB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.765e-05/0.2875, allocations: 59.58 kB / 462.9 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005794/0.2881, allocations: 470.9 kB / 463.3 MB, free: 7.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006846/0.295, allocations: 1.82 MB / 465.2 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003386/0.2983, allocations: 1.547 MB / 466.7 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.2985, allocations: 135.3 kB / 466.8 MB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00071/0.2992, allocations: 259.6 kB / 467.1 MB, free: 3.484 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0119/0.3111, allocations: 6.672 MB / 473.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.41e-05/0.3112, allocations: 35.75 kB / 473.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003347/0.3115, allocations: 87.89 kB / 473.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002195/0.3137, allocations: 1.363 MB / 475.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01133/0.325, allocations: 6.04 MB / 481.3 MB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03098/0.356, allocations: 25.46 MB / 0.4949 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006804/0.3628, allocations: 2.15 MB / 0.497 GB, free: 8.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.3643, allocations: 0.9929 MB / 0.4979 GB, free: 7.406 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005454/0.3697, allocations: 2.968 MB / 0.5008 GB, free: 4.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.3698, allocations: 47.06 kB / 0.5009 GB, free: 4.355 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.516e-06/0.3698, allocations: 0 / 0.5009 GB, free: 4.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02703/0.3968, allocations: 10.15 MB / 0.5108 GB, free: 10.13 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001379/0.3982, allocations: 1.568 MB / 0.5123 GB, free: 8.402 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003961/0.4021, allocations: 2.726 MB / 0.515 GB, free: 5.656 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001529/0.4023, allocations: 45.73 kB / 0.515 GB, free: 5.605 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001641/0.4039, allocations: 2.175 MB / 0.5172 GB, free: 3.406 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005736/0.4045, allocations: 0.5195 MB / 0.5177 GB, free: 2.883 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00128/0.4058, allocations: 0.9249 MB / 0.5186 GB, free: 1.945 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4059, allocations: 305.1 kB / 0.5189 GB, free: 1.645 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002518/0.4084, allocations: 1.629 MB / 0.5204 GB, free: 8 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005009/0.4134, allocations: 4.428 MB / 0.5248 GB, free: 10.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007983/0.4214, allocations: 6.496 MB / 0.5311 GB, free: 2.289 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.76e-05/0.4215, allocations: 32 kB / 0.5311 GB, free: 2.258 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01508/0.4366, allocations: 7.048 MB / 0.538 GB, free: 11.19 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.721e-05/0.4367, allocations: 48.22 kB / 0.5381 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006309/0.443, allocations: 2.536 MB / 0.5405 GB, free: 8.598 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005104/0.4481, allocations: 1.488 MB / 0.542 GB, free: 7.102 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003162/0.4512, allocations: 1.01 MB / 0.543 GB, free: 6.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1828/0.6341, allocations: 7.558 MB / 0.5504 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003196/0.6373, allocations: 325.8 kB / 0.5507 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004076/0.6377, allocations: 284.9 kB / 0.5509 GB, free: 110.3 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.001711/0.6394, allocations: 1.422 MB / 0.5523 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/0.6397, allocations: 248.1 kB / 0.5526 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005053/0.6402, allocations: 327.7 kB / 0.5529 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005473/0.6457, allocations: 2.511 MB / 0.5553 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.6457, allocations: 9.438 kB / 0.5553 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.6457, allocations: 4.984 kB / 0.5554 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.6561, allocations: 6.777 MB / 0.562 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.6561, allocations: 3.906 kB / 0.562 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007281/0.6568, allocations: 174.2 kB / 0.5621 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004293/0.6611, allocations: 1.442 MB / 0.5636 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/0.6612, allocations: 30.73 kB / 0.5636 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007977/0.6692, allocations: 7.71 MB / 0.5711 GB, free: 102.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006601/0.6699, allocations: 1.443 MB / 0.5725 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007564/0.6774, allocations: 4.865 MB / 0.5773 GB, free: 96.15 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005652/0.678, allocations: 227.8 kB / 0.5775 GB, free: 96 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004195/0.6784, allocations: 27.98 kB / 0.5775 GB, free: 95.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.6797, allocations: 111.7 kB / 0.5776 GB, free: 95.86 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/0.6799, allocations: 83.39 kB / 0.5777 GB, free: 95.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.557e-05/0.68, allocations: 35.98 kB / 0.5777 GB, free: 95.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002002/0.682, allocations: 1.695 MB / 0.5794 GB, free: 94.04 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.682, allocations: 0 / 0.5794 GB, free: 94.04 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003055/0.6851, allocations: 0.7562 MB / 0.5801 GB, free: 93.3 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.007087/0.6922, allocations: 5.495 MB / 0.5855 GB, free: 87.79 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005513/0.6977, allocations: 4.13 MB / 0.5895 GB, free: 83.69 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.6977, allocations: 5.969 kB / 0.5895 GB, free: 83.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002502/0.7002, allocations: 1.583 MB / 0.5911 GB, free: 82.09 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/0.7018, allocations: 277.1 kB / 0.5913 GB, free: 81.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03638/0.7382, allocations: 33.79 MB / 0.6243 GB, free: 44.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001774/0.74, allocations: 2.293 MB / 0.6266 GB, free: 41.83 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002273/0.7422, allocations: 1.404 MB / 0.628 GB, free: 40.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/0.7433, allocations: 1.116 MB / 0.629 GB, free: 39.3 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7433, allocations: 0 / 0.629 GB, free: 39.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08543/0.8287, allocations: 52.76 MB / 0.6806 GB, free: 2.891 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.14/18.97, allocations: 7.938 kB / 0.6806 GB, free: 2.887 MB / 478.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 21.99316745798569]