Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 207.6 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 71.88 kB / 378.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2224, allocations: 53.4 MB / 432 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01248/0.2349, allocations: 10.74 MB / 442.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007691/0.2425, allocations: 3.923 MB / 446.6 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008651/0.2434, allocations: 75.62 kB / 446.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003991/0.2474, allocations: 2.269 MB / 449 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003842/0.2512, allocations: 1.86 MB / 450.8 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.2525, allocations: 0.7058 MB / 451.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005405/0.2579, allocations: 4.32 MB / 455.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002864/0.2608, allocations: 2.451 MB / 458.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.2627, allocations: 1.487 MB / 459.8 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002856/0.2656, allocations: 2.258 MB / 462.1 MB, free: 8.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004862/0.2661, allocations: 296 kB / 462.4 MB, free: 8.133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.2677, allocations: 0.9479 MB / 463.3 MB, free: 7.184 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001731/0.2694, allocations: 1.846 MB / 465.2 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00209/0.2715, allocations: 2.085 MB / 467.2 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006578/0.2781, allocations: 6.4 MB / 473.6 MB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2781, allocations: 0 / 473.6 MB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2781, allocations: 0 / 473.6 MB, free: 12.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.929e-05/0.2782, allocations: 7.938 kB / 473.6 MB, free: 12.8 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.007485/0.2857, allocations: 4.633 MB / 478.3 MB, free: 8.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.2857, allocations: 12.03 kB / 478.3 MB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.304e-05/0.2858, allocations: 102 kB / 478.4 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007772/0.2866, allocations: 0.6951 MB / 479.1 MB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006941/0.2935, allocations: 1.956 MB / 481 MB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00453/0.298, allocations: 2.627 MB / 483.7 MB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001876/0.2982, allocations: 229.6 kB / 483.9 MB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005085/0.2987, allocations: 299.8 kB / 484.2 MB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0149/0.3136, allocations: 9.651 MB / 493.8 MB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000112/0.3138, allocations: 55.61 kB / 493.9 MB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003637/0.3141, allocations: 143.9 kB / 494 MB, free: 7.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002942/0.3171, allocations: 1.911 MB / 495.9 MB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01433/0.3314, allocations: 7.645 MB / 0.4918 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04234/0.3737, allocations: 37.55 MB / 0.5285 GB, free: 7.211 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006477/0.3802, allocations: 2.348 MB / 0.5307 GB, free: 4.828 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.3815, allocations: 0.7909 MB / 0.5315 GB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005788/0.3873, allocations: 3.09 MB / 0.5345 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.858e-05/0.3874, allocations: 43.22 kB / 0.5346 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.015e-06/0.3874, allocations: 0 / 0.5346 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.1792/0.5666, allocations: 9.14 MB / 0.5435 GB, free: 99.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.5666, allocations: 144.9 kB / 0.5436 GB, free: 98.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00391/0.5705, allocations: 3.938 MB / 0.5475 GB, free: 97.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.5706, allocations: 45.58 kB / 0.5475 GB, free: 97.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/0.5718, allocations: 3.213 MB / 0.5507 GB, free: 95.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003424/0.5721, allocations: 0.6299 MB / 0.5513 GB, free: 94.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009339/0.5731, allocations: 1.165 MB / 0.5524 GB, free: 94.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.871e-05/0.5731, allocations: 305 kB / 0.5527 GB, free: 94.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00176/0.5749, allocations: 1.577 MB / 0.5543 GB, free: 93.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00277/0.5776, allocations: 5.333 MB / 0.5595 GB, free: 87.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004948/0.5826, allocations: 7.533 MB / 0.5668 GB, free: 78.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-05/0.5826, allocations: 40 kB / 0.5669 GB, free: 78.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.007586/0.5902, allocations: 6.634 MB / 0.5733 GB, free: 71.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.488e-05/0.5903, allocations: 70.75 kB / 0.5734 GB, free: 71.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.903e-05/0.5904, allocations: 132 kB / 0.5735 GB, free: 71.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001063/0.5905, allocations: 180.1 kB / 0.5737 GB, free: 71.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00303/0.5935, allocations: 1.372 MB / 0.575 GB, free: 70.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001087/0.5936, allocations: 266.9 kB / 0.5753 GB, free: 69.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002952/0.5966, allocations: 287.7 kB / 0.5756 GB, free: 69.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000292/0.5969, allocations: 364 kB / 0.5759 GB, free: 69.26 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001856/0.5987, allocations: 1.974 MB / 0.5778 GB, free: 67.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003871/0.5991, allocations: 356.1 kB / 0.5782 GB, free: 66.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004748/0.5996, allocations: 397.6 kB / 0.5786 GB, free: 66.53 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.5996, allocations: 23.58 kB / 0.5786 GB, free: 66.51 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.5996, allocations: 8 kB / 0.5786 GB, free: 66.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.5996, allocations: 4.734 kB / 0.5786 GB, free: 66.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005927/0.6055, allocations: 5.725 MB / 0.5842 GB, free: 60.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.6056, allocations: 20 kB / 0.5842 GB, free: 60.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007864/0.6063, allocations: 280.4 kB / 0.5845 GB, free: 60.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.572e-05/0.6064, allocations: 28 kB / 0.5845 GB, free: 60.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.087e-05/0.6064, allocations: 48 kB / 0.5845 GB, free: 60.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.534e-05/0.6064, allocations: 39.86 kB / 0.5846 GB, free: 60.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.898e-06/0.6064, allocations: 27.88 kB / 0.5846 GB, free: 60.06 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002499/0.6089, allocations: 3.249 MB / 0.5878 GB, free: 56.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004922/0.6094, allocations: 353.5 kB / 0.5881 GB, free: 56.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/0.6097, allocations: 47.98 kB / 0.5882 GB, free: 56.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009491/0.6107, allocations: 63.95 kB / 0.5882 GB, free: 56.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.6108, allocations: 151.3 kB / 0.5884 GB, free: 55.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.921e-05/0.6108, allocations: 67.83 kB / 0.5884 GB, free: 55.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002293/0.6131, allocations: 2.438 MB / 0.5908 GB, free: 53.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6131, allocations: 3.938 kB / 0.5908 GB, free: 53.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003459/0.6166, allocations: 0.8436 MB / 0.5916 GB, free: 52.62 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002656/0.6193, allocations: 3.919 MB / 0.5955 GB, free: 48.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.6231, allocations: 3.528 MB / 0.5989 GB, free: 44.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.6231, allocations: 4 kB / 0.5989 GB, free: 44.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006632/0.6237, allocations: 0.6892 MB / 0.5996 GB, free: 44.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.6257, allocations: 455.2 kB / 0.6 GB, free: 43.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03519/0.6609, allocations: 40.39 MB / 0.6395 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003422/0.6644, allocations: 3.097 MB / 0.6425 GB, free: 9.992 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003789/0.6681, allocations: 1.76 MB / 0.6442 GB, free: 8.223 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002162/0.6703, allocations: 1.792 MB / 0.646 GB, free: 6.43 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.6703, allocations: 0 / 0.646 GB, free: 6.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1318/0.8021, allocations: 61.1 MB / 0.7056 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.98/21.79, allocations: 11.98 kB / 0.7056 GB, free: 9.648 MB / 0.5137 GB " [Timeout remaining time 638] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 25.36502946499968]