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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001168/0.001168, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 65.55 kB / 306.4 MB, free: 0.6875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.102, allocations: 50.52 MB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2188/0.3209, allocations: 38.41 MB / 395.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02167/0.3426, allocations: 8.405 MB / 403.7 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01031/0.3529, allocations: 168.6 kB / 403.9 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005011/0.358, allocations: 2.195 MB / 406.1 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006076/0.3641, allocations: 1.683 MB / 407.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001997/0.3661, allocations: 0.6618 MB / 408.4 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007534/0.3737, allocations: 5.939 MB / 414.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004414/0.3781, allocations: 2.855 MB / 417.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002686/0.3808, allocations: 1.319 MB / 418.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003093/0.3839, allocations: 2.223 MB / 420.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008597/0.3848, allocations: 212 kB / 421 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00211/0.3869, allocations: 0.8892 MB / 421.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001571/0.3885, allocations: 1.741 MB / 423.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001659/0.3902, allocations: 2.026 MB / 425.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004427/0.3946, allocations: 6.066 MB / 431.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3946, allocations: 0 / 431.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.3946, allocations: 0 / 431.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.673e-05/0.3947, allocations: 0 / 431.7 MB, free: 0.6133 MB / 334.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.00682/0.4015, allocations: 4.591 MB / 436.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4016, allocations: 8.031 kB / 436.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007461/0.4024, allocations: 0.699 MB / 437 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006645/0.409, allocations: 1.933 MB / 438.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004/0.413, allocations: 2.648 MB / 441.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.4132, allocations: 225.6 kB / 441.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004344/0.4136, allocations: 295.8 kB / 442.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/0.4267, allocations: 9.651 MB / 451.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.76e-05/0.4268, allocations: 43.53 kB / 451.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000344/0.4271, allocations: 151.8 kB / 451.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002572/0.4297, allocations: 1.919 MB / 453.8 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01282/0.4425, allocations: 7.645 MB / 461.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04223/0.4848, allocations: 37.74 MB / 499.2 MB, free: 10.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00669/0.4915, allocations: 2.905 MB / 0.4903 GB, free: 7.914 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/0.4928, allocations: 0.8712 MB / 0.4912 GB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005876/0.4987, allocations: 3.846 MB / 0.495 GB, free: 2.969 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.4988, allocations: 51.16 kB / 0.495 GB, free: 2.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.437e-06/0.4988, allocations: 0 / 0.495 GB, free: 2.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02069/0.5195, allocations: 9.064 MB / 0.5039 GB, free: 9.727 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.5196, allocations: 141.5 kB / 0.504 GB, free: 9.559 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004623/0.5242, allocations: 3.928 MB / 0.5078 GB, free: 5.648 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.646e-05/0.5243, allocations: 53.7 kB / 0.5079 GB, free: 5.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/0.526, allocations: 3.078 MB / 0.5109 GB, free: 2.469 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004045/0.5264, allocations: 0.6096 MB / 0.5115 GB, free: 1.852 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001129/0.5275, allocations: 1.159 MB / 0.5126 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.624e-05/0.5276, allocations: 305.1 kB / 0.5129 GB, free: 388 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002213/0.5298, allocations: 1.569 MB / 0.5144 GB, free: 14.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004055/0.5339, allocations: 5.33 MB / 0.5196 GB, free: 7.574 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1862/0.7201, allocations: 7.525 MB / 0.527 GB, free: 138.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001102/0.7203, allocations: 41.31 kB / 0.527 GB, free: 138.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01152/0.7318, allocations: 6.629 MB / 0.5335 GB, free: 137.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.559e-05/0.7319, allocations: 61.88 kB / 0.5336 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001536/0.7321, allocations: 134.1 kB / 0.5337 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.7323, allocations: 176.4 kB / 0.5339 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00382/0.7361, allocations: 1.372 MB / 0.5352 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002413/0.7364, allocations: 264.4 kB / 0.5354 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003382/0.7398, allocations: 283.8 kB / 0.5357 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004622/0.7402, allocations: 369.8 kB / 0.5361 GB, free: 136.8 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.00285/0.7431, allocations: 1.985 MB / 0.538 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005196/0.7436, allocations: 335.2 kB / 0.5383 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006468/0.7443, allocations: 402.7 kB / 0.5387 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.947e-05/0.7443, allocations: 19.88 kB / 0.5387 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.7443, allocations: 1.906 kB / 0.5387 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.7443, allocations: 8.188 kB / 0.5387 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008473/0.7528, allocations: 5.762 MB / 0.5444 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.7529, allocations: 15.72 kB / 0.5444 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008681/0.7537, allocations: 280 kB / 0.5446 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.286e-05/0.7538, allocations: 24.69 kB / 0.5447 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.67e-05/0.7539, allocations: 48.33 kB / 0.5447 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.927e-05/0.7539, allocations: 37.25 kB / 0.5448 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.84e-05/0.7539, allocations: 30.38 kB / 0.5448 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003189/0.7571, allocations: 3.234 MB / 0.5479 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005589/0.7577, allocations: 409.5 kB / 0.5483 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000285/0.758, allocations: 50.8 kB / 0.5484 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009701/0.7589, allocations: 63.61 kB / 0.5484 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.7591, allocations: 148.9 kB / 0.5486 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.058e-05/0.7592, allocations: 69.61 kB / 0.5486 GB, free: 130.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002944/0.7622, allocations: 2.441 MB / 0.551 GB, free: 130 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.7622, allocations: 4 kB / 0.551 GB, free: 130 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004368/0.7665, allocations: 0.8378 MB / 0.5519 GB, free: 129.9 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.00323/0.7698, allocations: 3.9 MB / 0.5557 GB, free: 127.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004714/0.7745, allocations: 3.622 MB / 0.5592 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/0.7745, allocations: 3.875 kB / 0.5592 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007858/0.7753, allocations: 0.735 MB / 0.5599 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.7777, allocations: 439.8 kB / 0.5603 GB, free: 125.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05126/0.829, allocations: 47.27 MB / 0.6065 GB, free: 71.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003727/0.8327, allocations: 3.091 MB / 0.6095 GB, free: 68.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003829/0.8366, allocations: 1.76 MB / 0.6112 GB, free: 66.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/0.8384, allocations: 1.788 MB / 0.613 GB, free: 64.75 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.8384, allocations: 3.938 kB / 0.613 GB, free: 64.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.946/2.785, allocations: 58.65 MB / 0.6703 GB, free: 6.402 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/2.785, allocations: 230.5 kB / 0.6705 GB, free: 6.137 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.855/6.64, allocations: 3.938 kB / 0.6705 GB, free: 6.133 MB / 446.1 MB (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 --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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches