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.001549/0.001549, allocations: 111.5 kB / 21.22 MB, free: 0.6484 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.001725/0.001725, allocations: 209.2 kB / 24.51 MB, free: 3.941 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.36/1.36, allocations: 230.5 MB / 258.2 MB, free: 7.801 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.001712/0.001712, allocations: 59.91 kB / 378.5 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2209, allocations: 53.41 MB / 431.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01067/0.2316, allocations: 9.294 MB / 441.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006664/0.2382, allocations: 3.69 MB / 444.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000839/0.2391, allocations: 71.62 kB / 445 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003872/0.2429, allocations: 2.184 MB / 447.2 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003761/0.2467, allocations: 1.848 MB / 449 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001356/0.248, allocations: 0.7136 MB / 449.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005655/0.2537, allocations: 4.319 MB / 454 MB, free: 284 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003206/0.2569, allocations: 2.443 MB / 456.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002122/0.259, allocations: 1.499 MB / 458 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00296/0.262, allocations: 2.251 MB / 460.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005869/0.2626, allocations: 292 kB / 460.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001596/0.2642, allocations: 0.8388 MB / 461.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001871/0.266, allocations: 1.846 MB / 463.2 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002496/0.2685, allocations: 1.557 MB / 464.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00742/0.276, allocations: 6.419 MB / 471.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.276, allocations: 0 / 471.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.276, allocations: 3.938 kB / 471.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001438/0.2761, allocations: 0 / 471.2 MB, free: 15.03 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.00842/0.2845, allocations: 4.633 MB / 475.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.2846, allocations: 12.03 kB / 475.8 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001077/0.2847, allocations: 97.97 kB / 475.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009231/0.2856, allocations: 0.6951 MB / 476.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007069/0.2927, allocations: 1.967 MB / 478.6 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004886/0.2976, allocations: 2.635 MB / 481.2 MB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.2978, allocations: 229.6 kB / 481.4 MB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005718/0.2983, allocations: 287.9 kB / 481.7 MB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01509/0.3134, allocations: 9.688 MB / 491.4 MB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001023/0.3135, allocations: 47.58 kB / 491.5 MB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003854/0.3139, allocations: 151.8 kB / 491.6 MB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002832/0.3168, allocations: 1.911 MB / 493.5 MB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01426/0.331, allocations: 7.648 MB / 0.4894 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04061/0.3716, allocations: 36.25 MB / 0.5248 GB, free: 10.69 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0063/0.3779, allocations: 2.329 MB / 0.5271 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/0.3792, allocations: 0.7949 MB / 0.5279 GB, free: 7.516 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005356/0.3845, allocations: 2.891 MB / 0.5307 GB, free: 4.598 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.3846, allocations: 47.22 kB / 0.5307 GB, free: 4.543 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.138e-06/0.3846, allocations: 4 kB / 0.5307 GB, free: 4.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.1913/0.5759, allocations: 9.129 MB / 0.5397 GB, free: 100.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.5759, allocations: 146.5 kB / 0.5398 GB, free: 100.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004421/0.5803, allocations: 3.94 MB / 0.5436 GB, free: 99.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.5805, allocations: 48.64 kB / 0.5437 GB, free: 99.06 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/0.5817, allocations: 3.213 MB / 0.5468 GB, free: 96.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003023/0.582, allocations: 0.6295 MB / 0.5474 GB, free: 96.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009205/0.5829, allocations: 1.168 MB / 0.5486 GB, free: 95.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.096e-05/0.583, allocations: 305.1 kB / 0.5489 GB, free: 95.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/0.5847, allocations: 1.573 MB / 0.5504 GB, free: 95.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002633/0.5873, allocations: 5.337 MB / 0.5556 GB, free: 89.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004752/0.5921, allocations: 7.532 MB / 0.563 GB, free: 81.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.058e-05/0.5921, allocations: 36 kB / 0.563 GB, free: 81.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.007263/0.5994, allocations: 6.638 MB / 0.5695 GB, free: 75.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/0.5994, allocations: 64 kB / 0.5696 GB, free: 75.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.5995, allocations: 132 kB / 0.5697 GB, free: 75.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001322/0.5997, allocations: 179.6 kB / 0.5699 GB, free: 74.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003121/0.6028, allocations: 1.377 MB / 0.5712 GB, free: 73.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001463/0.6029, allocations: 266 kB / 0.5714 GB, free: 73.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/0.6058, allocations: 283.7 kB / 0.5717 GB, free: 72.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000309/0.6061, allocations: 368 kB / 0.5721 GB, free: 72.61 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.001773/0.6079, allocations: 1.978 MB / 0.574 GB, free: 70.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003426/0.6083, allocations: 357.4 kB / 0.5743 GB, free: 70.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004332/0.6087, allocations: 401.6 kB / 0.5747 GB, free: 69.87 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/0.6087, allocations: 16 kB / 0.5747 GB, free: 69.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.6087, allocations: 4 kB / 0.5747 GB, free: 69.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.6087, allocations: 7.969 kB / 0.5748 GB, free: 69.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005827/0.6146, allocations: 5.435 MB / 0.5801 GB, free: 64.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.6146, allocations: 20 kB / 0.5801 GB, free: 64.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008031/0.6154, allocations: 275.5 kB / 0.5803 GB, free: 63.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.554e-05/0.6154, allocations: 24 kB / 0.5804 GB, free: 63.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-05/0.6155, allocations: 52 kB / 0.5804 GB, free: 63.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.584e-05/0.6155, allocations: 35.86 kB / 0.5804 GB, free: 63.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/0.6155, allocations: 32.19 kB / 0.5805 GB, free: 63.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/0.618, allocations: 3.253 MB / 0.5837 GB, free: 60.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005131/0.6185, allocations: 353.5 kB / 0.584 GB, free: 59.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00028/0.6188, allocations: 55.28 kB / 0.584 GB, free: 59.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009658/0.6197, allocations: 55.97 kB / 0.5841 GB, free: 59.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.6199, allocations: 159.3 kB / 0.5843 GB, free: 59.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.157e-05/0.6199, allocations: 68 kB / 0.5843 GB, free: 59.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002437/0.6224, allocations: 2.442 MB / 0.5867 GB, free: 57.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6224, allocations: 0 / 0.5867 GB, free: 57.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003767/0.6261, allocations: 0.8359 MB / 0.5875 GB, free: 56.28 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.002873/0.629, allocations: 3.915 MB / 0.5913 GB, free: 52.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00421/0.6332, allocations: 3.527 MB / 0.5948 GB, free: 48.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/0.6332, allocations: 384 / 0.5948 GB, free: 48.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007507/0.634, allocations: 0.6984 MB / 0.5955 GB, free: 47.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002431/0.6364, allocations: 453.8 kB / 0.5959 GB, free: 47.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03847/0.6749, allocations: 40.38 MB / 0.6353 GB, free: 0.793 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00284/0.6777, allocations: 2.557 MB / 0.6378 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003657/0.6814, allocations: 1.757 MB / 0.6395 GB, free: 12.43 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002189/0.6836, allocations: 1.788 MB / 0.6413 GB, free: 10.64 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/0.6836, allocations: 0 / 0.6413 GB, free: 10.64 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.374/1.058, allocations: 58.25 MB / 0.6982 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.17/22.23, allocations: 11.05 kB / 0.6982 GB, free: 1.141 MB / 0.4981 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.79638709803112]