Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008063/0.0008063, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.003712/0.003712, allocations: 161.6 kB / 24.69 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.838/0.838, allocations: 158.6 MB / 186.5 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.113e-06/2.113e-06, allocations: 0 / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.779e-05/1.991e-05, allocations: 2.281 kB / 298.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1337/0.1337, allocations: 6.608 MB / 305.1 MB, free: 12.31 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004408/0.1381, allocations: 3.051 MB / 308.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007177/0.1388, allocations: 40.81 kB / 308.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001627/0.1404, allocations: 1.06 MB / 309.2 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003173/0.1436, allocations: 1.45 MB / 310.7 MB, free: 9.641 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009715/0.1446, allocations: 495.3 kB / 311.1 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003655/0.1482, allocations: 2.964 MB / 314.1 MB, free: 8.398 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002311/0.1506, allocations: 1.586 MB / 315.7 MB, free: 7.734 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001985/0.1525, allocations: 1.33 MB / 317 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001779/0.1543, allocations: 1.405 MB / 318.4 MB, free: 6.426 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000305/0.1546, allocations: 175.8 kB / 318.6 MB, free: 6.426 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001397/0.156, allocations: 0.9792 MB / 319.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008022/0.1568, allocations: 1.188 MB / 320.8 MB, free: 5.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000718/0.1575, allocations: 0.7382 MB / 321.5 MB, free: 4.902 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003312/0.1609, allocations: 4.425 MB / 325.9 MB, free: 1.961 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.1609, allocations: 0 / 325.9 MB, free: 1.961 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1609, allocations: 6.906 kB / 325.9 MB, free: 1.957 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.445e-05/0.1609, allocations: 0 / 325.9 MB, free: 1.957 MB / 282.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.004317/0.1653, allocations: 3.117 MB / 329.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.1653, allocations: 17.52 kB / 329.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004278/0.1657, allocations: 467.1 kB / 329.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00374/0.1695, allocations: 1.875 MB / 331.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00176/0.1712, allocations: 1.54 MB / 332.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.135e-05/0.1713, allocations: 131.3 kB / 333.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000432/0.1717, allocations: 263.6 kB / 333.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006649/0.1784, allocations: 6.689 MB / 340 MB, free: 4.535 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.759e-05/0.1784, allocations: 31.7 kB / 340 MB, free: 4.504 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001854/0.1786, allocations: 91.83 kB / 340.1 MB, free: 4.414 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001341/0.18, allocations: 1.368 MB / 341.5 MB, free: 3.043 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00707/0.187, allocations: 6.045 MB / 347.5 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02044/0.2075, allocations: 24.77 MB / 372.3 MB, free: 3.473 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003635/0.2111, allocations: 2.198 MB / 374.5 MB, free: 1.242 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008882/0.212, allocations: 0.9925 MB / 375.5 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003468/0.2155, allocations: 2.852 MB / 378.4 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.2155, allocations: 47 kB / 378.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=112): time 3.347e-06/0.2155, allocations: 4 kB / 378.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.01521/0.2307, allocations: 10.41 MB / 388.8 MB, free: 2.805 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009302/0.2316, allocations: 1.568 MB / 390.4 MB, free: 1.082 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/0.2346, allocations: 3.112 MB / 393.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.028e-05/0.2347, allocations: 45.69 kB / 393.5 MB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009128/0.2356, allocations: 2.148 MB / 395.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003485/0.236, allocations: 0.5195 MB / 396.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008237/0.2368, allocations: 0.9055 MB / 397.1 MB, free: 10.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.254e-05/0.2369, allocations: 313 kB / 397.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001719/0.2386, allocations: 1.699 MB / 399.1 MB, free: 8.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002733/0.2413, allocations: 4.503 MB / 403.6 MB, free: 2.359 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005017/0.2463, allocations: 6.606 MB / 410.2 MB, free: 10.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-05/0.2464, allocations: 32.88 kB / 410.3 MB, free: 10.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01119/0.2576, allocations: 8.099 MB / 418.4 MB, free: 2.215 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.121e-05/0.2576, allocations: 48 kB / 418.4 MB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00629/0.2639, allocations: 3.539 MB / 421.9 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00614/0.2701, allocations: 2.59 MB / 424.5 MB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/0.2721, allocations: 1.018 MB / 425.6 MB, free: 11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009317/0.2814, allocations: 9.418 MB / 435 MB, free: 1.355 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003171/0.2846, allocations: 399.5 kB / 435.4 MB, free: 0.9648 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004178/0.285, allocations: 286.2 kB / 435.6 MB, free: 0.6875 MB / 394.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.002097/0.2871, allocations: 1.423 MB / 437.1 MB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003427/0.2874, allocations: 242.4 kB / 437.3 MB, free: 15.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003807/0.2912, allocations: 2.823 MB / 440.1 MB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003332/0.2946, allocations: 2.497 MB / 442.6 MB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.2946, allocations: 8.031 kB / 442.6 MB, free: 9.633 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.2946, allocations: 16.44 kB / 442.6 MB, free: 9.617 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008612/0.3032, allocations: 6.593 MB / 449.2 MB, free: 2.926 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.3032, allocations: 0 / 449.2 MB, free: 2.926 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004726/0.3037, allocations: 175.7 kB / 449.4 MB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002601/0.3063, allocations: 1.434 MB / 450.8 MB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.87e-05/0.3064, allocations: 35.91 kB / 450.9 MB, free: 1.273 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006757/0.3131, allocations: 7.676 MB / 458.6 MB, free: 9.379 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007358/0.3139, allocations: 1.434 MB / 460 MB, free: 7.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00587/0.3197, allocations: 4.848 MB / 464.8 MB, free: 2.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007836/0.3205, allocations: 262.2 kB / 465.1 MB, free: 2.672 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/0.3207, allocations: 31.98 kB / 465.1 MB, free: 2.641 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007658/0.3215, allocations: 147.8 kB / 465.3 MB, free: 2.496 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/0.3217, allocations: 84.48 kB / 465.3 MB, free: 2.414 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-05/0.3217, allocations: 39.98 kB / 465.4 MB, free: 2.375 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002412/0.3242, allocations: 1.858 MB / 467.2 MB, free: 0.5078 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.3242, allocations: 0 / 467.2 MB, free: 0.5078 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.1455/0.4696, allocations: 0.8812 MB / 468.1 MB, free: 138.2 MB / 426.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.006483/0.4761, allocations: 5.496 MB / 473.6 MB, free: 137.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005527/0.4816, allocations: 4.237 MB / 477.9 MB, free: 135.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.4816, allocations: 0 / 477.9 MB, free: 135.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002071/0.4837, allocations: 1.576 MB / 479.4 MB, free: 135 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.4853, allocations: 277.1 kB / 479.7 MB, free: 134.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0394/0.5247, allocations: 36.28 MB / 0.5039 GB, free: 108 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001268/0.526, allocations: 1.735 MB / 0.5056 GB, free: 106.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001925/0.5279, allocations: 1.416 MB / 0.507 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008768/0.5288, allocations: 1.121 MB / 0.5081 GB, free: 103.7 MB / 426.7 MB Notification: Performance of SimCode: time 2.234e-06/0.5288, allocations: 0 / 0.5081 GB, free: 103.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06303/0.5918, allocations: 54.13 MB / 0.5609 GB, free: 49.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.29, allocations: 0 / 0.5609 GB, free: 49.39 MB / 426.7 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 13.073486330918968]