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.00106/0.00106, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001557/0.001557, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8667/0.8667, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.206e-05/2.431e-05, allocations: 8.531 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005353/0.005377, allocations: 6.586 MB / 331.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003909/0.009286, allocations: 3.098 MB / 334.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004956/0.009781, allocations: 39.81 kB / 334.3 MB, free: 6.168 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.01106, allocations: 1.055 MB / 335.4 MB, free: 5.109 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002/0.01306, allocations: 1.427 MB / 336.8 MB, free: 3.676 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007434/0.0138, allocations: 482.9 kB / 337.3 MB, free: 3.203 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002366/0.01617, allocations: 3.021 MB / 340.3 MB, free: 180 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.01751, allocations: 1.566 MB / 341.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.01867, allocations: 1.317 MB / 343.2 MB, free: 13.27 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.01978, allocations: 1.399 MB / 344.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001829/0.01996, allocations: 172 kB / 344.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.02098, allocations: 0.9709 MB / 345.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005868/0.02157, allocations: 1.165 MB / 346.9 MB, free: 9.555 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004824/0.02205, allocations: 0.7202 MB / 347.6 MB, free: 8.832 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002781/0.02483, allocations: 4.369 MB / 351.9 MB, free: 4.449 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.02484, allocations: 7.938 kB / 352 MB, free: 4.441 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.02484, allocations: 0 / 352 MB, free: 4.441 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.975e-05/0.02489, allocations: 0 / 352 MB, free: 4.441 MB / 314.7 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.003816/0.0287, allocations: 3.071 MB / 355 MB, free: 1.328 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.02875, allocations: 16.03 kB / 355 MB, free: 1.312 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000354/0.0291, allocations: 474.8 kB / 355.5 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003631/0.03273, allocations: 1.926 MB / 357.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.03431, allocations: 1.399 MB / 358.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.775e-05/0.03438, allocations: 135.2 kB / 359 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003888/0.03477, allocations: 255.8 kB / 359.2 MB, free: 13.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008285/0.04305, allocations: 6.708 MB / 365.9 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.785e-05/0.04311, allocations: 31.7 kB / 366 MB, free: 5.895 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001951/0.04331, allocations: 87.89 kB / 366 MB, free: 5.809 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001363/0.04467, allocations: 1.367 MB / 367.4 MB, free: 4.438 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006888/0.05156, allocations: 6.064 MB / 373.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01718/0.06873, allocations: 24.7 MB / 398.2 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003623/0.07236, allocations: 2.209 MB / 400.4 MB, free: 2.652 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008132/0.07317, allocations: 0.9848 MB / 401.4 MB, free: 1.656 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002929/0.0761, allocations: 2.845 MB / 404.2 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.07613, allocations: 47.06 kB / 404.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 2.384e-06/0.07613, allocations: 0 / 404.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01451/0.09064, allocations: 10.36 MB / 414.6 MB, free: 4.293 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008184/0.09146, allocations: 1.568 MB / 416.2 MB, free: 2.566 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00247/0.09393, allocations: 3.052 MB / 419.2 MB, free: 15.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.09399, allocations: 41.7 kB / 419.3 MB, free: 15.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008635/0.09486, allocations: 2.14 MB / 421.4 MB, free: 13.28 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006649/0.09552, allocations: 0.5195 MB / 421.9 MB, free: 12.76 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008209/0.09634, allocations: 0.9095 MB / 422.8 MB, free: 11.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.266e-05/0.09642, allocations: 313.1 kB / 423.1 MB, free: 11.53 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001619/0.09804, allocations: 1.699 MB / 424.8 MB, free: 9.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0033/0.1013, allocations: 4.506 MB / 429.3 MB, free: 3.906 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004931/0.1063, allocations: 6.623 MB / 436 MB, free: 11.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.535e-05/0.1063, allocations: 28 kB / 436 MB, free: 11.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01043/0.1167, allocations: 8.161 MB / 444.2 MB, free: 3.691 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.1168, allocations: 51.94 kB / 444.2 MB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006142/0.1229, allocations: 3.628 MB / 447.8 MB, free: 0 / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006705/0.1296, allocations: 2.677 MB / 450.5 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001925/0.1315, allocations: 1.02 MB / 451.5 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007284/0.1388, allocations: 9.445 MB / 461 MB, free: 105 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/0.1408, allocations: 394.5 kB / 461.4 MB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000232/0.141, allocations: 282.1 kB / 461.6 MB, free: 104.9 MB / 410.7 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.001128/0.1422, allocations: 1.419 MB / 463.1 MB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.1424, allocations: 242.1 kB / 463.3 MB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002391/0.1426, allocations: 323.5 kB / 463.6 MB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002887/0.1455, allocations: 2.514 MB / 466.1 MB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1455, allocations: 6.625 kB / 466.1 MB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1455, allocations: 3.891 kB / 466.1 MB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006268/0.1518, allocations: 6.597 MB / 472.7 MB, free: 97.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1518, allocations: 4 kB / 472.7 MB, free: 97.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004089/0.1522, allocations: 176.6 kB / 472.9 MB, free: 96.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002169/0.1543, allocations: 1.432 MB / 474.3 MB, free: 95.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.046e-05/0.1544, allocations: 32.69 kB / 474.4 MB, free: 95.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004976/0.1594, allocations: 7.674 MB / 482 MB, free: 87.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003602/0.1597, allocations: 1.431 MB / 483.5 MB, free: 86.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00408/0.1638, allocations: 4.866 MB / 488.3 MB, free: 81.31 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.1641, allocations: 254.9 kB / 488.6 MB, free: 81.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.1642, allocations: 23.98 kB / 488.6 MB, free: 81.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006209/0.1648, allocations: 151.3 kB / 488.8 MB, free: 81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.165, allocations: 92.36 kB / 488.9 MB, free: 80.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.032e-05/0.165, allocations: 35.98 kB / 488.9 MB, free: 80.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001247/0.1663, allocations: 1.818 MB / 490.7 MB, free: 79.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1663, allocations: 0 / 490.7 MB, free: 79.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002051/0.1683, allocations: 0.8548 MB / 491.6 MB, free: 78.2 MB / 410.7 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.00454/0.1728, allocations: 5.509 MB / 497.1 MB, free: 72.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003876/0.1767, allocations: 4.252 MB / 0.4896 GB, free: 68.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1767, allocations: 0 / 0.4896 GB, free: 68.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00143/0.1782, allocations: 1.578 MB / 0.4911 GB, free: 66.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009415/0.1791, allocations: 264.9 kB / 0.4914 GB, free: 66.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02868/0.2078, allocations: 36.24 MB / 0.5268 GB, free: 26.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.209, allocations: 1.72 MB / 0.5284 GB, free: 24.67 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001752/0.2108, allocations: 1.415 MB / 0.5298 GB, free: 23.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007411/0.2115, allocations: 1.121 MB / 0.5309 GB, free: 22.12 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2115, allocations: 0 / 0.5309 GB, free: 22.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05986/0.2714, allocations: 53.59 MB / 0.5832 GB, free: 1.051 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.548/9.82, allocations: 23.02 kB / 0.5833 GB, free: 1.031 MB / 442.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/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: 11.773362619802356]