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.001262/0.001262, allocations: 108.6 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.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.001339/0.001339, allocations: 191.7 kB / 24.5 MB, free: 4.02 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.343/1.343, allocations: 225.7 MB / 253.3 MB, free: 13.03 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 43.92 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2882, allocations: 52.2 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009023/0.2972, allocations: 7.493 MB / 430.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006668/0.3039, allocations: 3.289 MB / 434.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.305, allocations: 39.81 kB / 434.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.3071, allocations: 1.043 MB / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003181/0.3103, allocations: 1.405 MB / 436.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.3113, allocations: 463.1 kB / 437.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003571/0.3149, allocations: 2.627 MB / 439.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.3165, allocations: 1.329 MB / 441.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001223/0.3177, allocations: 0.8642 MB / 442 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002017/0.3198, allocations: 1.332 MB / 443.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000402/0.3202, allocations: 172 kB / 443.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.3221, allocations: 1.076 MB / 444.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.3232, allocations: 1.133 MB / 445.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001371/0.3246, allocations: 1.308 MB / 447 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005208/0.3298, allocations: 4.388 MB / 451.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3298, allocations: 0 / 451.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3298, allocations: 0 / 451.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.765e-05/0.3299, allocations: 0 / 451.4 MB, free: 2.52 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.006729/0.3366, allocations: 3.064 MB / 454.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.3367, allocations: 12.03 kB / 454.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.004e-05/0.3368, allocations: 63.52 kB / 454.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006266/0.3374, allocations: 470.9 kB / 455 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006736/0.3441, allocations: 1.766 MB / 456.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003378/0.3475, allocations: 1.648 MB / 458.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.3476, allocations: 135.3 kB / 458.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006445/0.3483, allocations: 259.6 kB / 458.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01243/0.3607, allocations: 6.664 MB / 465.4 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-05/0.3608, allocations: 27.77 kB / 465.5 MB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003263/0.3611, allocations: 87.89 kB / 465.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0024/0.3635, allocations: 1.363 MB / 466.9 MB, free: 2.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01261/0.3761, allocations: 6.029 MB / 472.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03816/0.4143, allocations: 25.47 MB / 498.4 MB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007101/0.4214, allocations: 2.136 MB / 0.4888 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.4232, allocations: 0.9882 MB / 0.4898 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006818/0.43, allocations: 2.953 MB / 0.4927 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.921e-05/0.43, allocations: 47 kB / 0.4927 GB, free: 11.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.417e-06/0.43, allocations: 0 / 0.4927 GB, free: 11.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.03045/0.4605, allocations: 10.11 MB / 0.5026 GB, free: 1.773 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001719/0.4622, allocations: 1.568 MB / 0.5041 GB, free: 44 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005721/0.4679, allocations: 2.754 MB / 0.5068 GB, free: 13.27 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003302/0.4683, allocations: 41.7 kB / 0.5068 GB, free: 13.22 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002271/0.4705, allocations: 2.175 MB / 0.509 GB, free: 11.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000793/0.4713, allocations: 0.5237 MB / 0.5095 GB, free: 10.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001875/0.4732, allocations: 0.921 MB / 0.5104 GB, free: 9.562 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.4734, allocations: 305.1 kB / 0.5107 GB, free: 9.262 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002807/0.4762, allocations: 1.625 MB / 0.5122 GB, free: 7.629 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004773/0.4809, allocations: 4.421 MB / 0.5166 GB, free: 1.801 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007807/0.4887, allocations: 6.494 MB / 0.5229 GB, free: 9.918 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.207e-05/0.4888, allocations: 28 kB / 0.5229 GB, free: 9.891 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.0147/0.5035, allocations: 7.032 MB / 0.5298 GB, free: 2.844 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.335e-05/0.5036, allocations: 48 kB / 0.5298 GB, free: 2.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006266/0.5099, allocations: 2.529 MB / 0.5323 GB, free: 264 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005387/0.5153, allocations: 1.496 MB / 0.5338 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003208/0.5185, allocations: 1.002 MB / 0.5348 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.5298, allocations: 7.576 MB / 0.5422 GB, free: 5.941 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004237/0.534, allocations: 323.7 kB / 0.5425 GB, free: 5.625 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007413/0.5348, allocations: 284 kB / 0.5427 GB, free: 5.348 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.002594/0.5374, allocations: 1.426 MB / 0.5441 GB, free: 3.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005532/0.5379, allocations: 246.4 kB / 0.5444 GB, free: 3.668 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006943/0.5448, allocations: 2.82 MB / 0.5471 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2563/0.8011, allocations: 2.495 MB / 0.5496 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.801e-05/0.8012, allocations: 5.844 kB / 0.5496 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-05/0.8012, allocations: 5.453 kB / 0.5496 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/0.8142, allocations: 6.77 MB / 0.5562 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.8142, allocations: 0 / 0.5562 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007035/0.8149, allocations: 179.7 kB / 0.5563 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004207/0.8191, allocations: 1.439 MB / 0.5577 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.8192, allocations: 26.06 kB / 0.5578 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008017/0.8272, allocations: 7.72 MB / 0.5653 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006735/0.8279, allocations: 1.433 MB / 0.5667 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007149/0.835, allocations: 4.853 MB / 0.5715 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005665/0.8356, allocations: 226.9 kB / 0.5717 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.8358, allocations: 31.98 kB / 0.5717 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.8369, allocations: 111.8 kB / 0.5718 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/0.8372, allocations: 80.48 kB / 0.5719 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.8373, allocations: 43.34 kB / 0.5719 GB, free: 108.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002026/0.8393, allocations: 1.693 MB / 0.5736 GB, free: 106.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8393, allocations: 0 / 0.5736 GB, free: 106.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003243/0.8425, allocations: 0.7643 MB / 0.5743 GB, free: 106.1 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.007317/0.8499, allocations: 5.511 MB / 0.5797 GB, free: 100.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006054/0.8559, allocations: 4.116 MB / 0.5837 GB, free: 96.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.8559, allocations: 6.719 kB / 0.5837 GB, free: 96.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002697/0.8586, allocations: 1.578 MB / 0.5853 GB, free: 95.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.8604, allocations: 263.9 kB / 0.5855 GB, free: 94.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03789/0.8983, allocations: 33.8 MB / 0.6185 GB, free: 57.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00273/0.901, allocations: 2.302 MB / 0.6208 GB, free: 54.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002592/0.9036, allocations: 1.404 MB / 0.6222 GB, free: 53.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/0.9047, allocations: 1.112 MB / 0.6232 GB, free: 52.27 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.9047, allocations: 0 / 0.6232 GB, free: 52.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9953/1.9, allocations: 52.88 MB / 0.6749 GB, free: 15.73 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.34/21.24, allocations: 3.938 kB / 0.6749 GB, free: 15.73 MB / 478.1 MB " [Timeout remaining time 639] (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: 24.434183456993196]