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.001194/0.001194, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 59.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2976, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01233/0.31, allocations: 10.66 MB / 419.4 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008825/0.3189, allocations: 3.892 MB / 423.3 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002054/0.321, allocations: 63.81 kB / 423.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005097/0.3262, allocations: 2.227 MB / 425.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005107/0.3313, allocations: 1.794 MB / 427.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001803/0.3331, allocations: 0.7136 MB / 428.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006207/0.3394, allocations: 4.312 MB / 432.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004467/0.3439, allocations: 2.895 MB / 435.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003113/0.347, allocations: 1.46 MB / 436.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003504/0.3506, allocations: 2.079 MB / 438.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001172/0.3518, allocations: 292 kB / 439.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00281/0.3546, allocations: 0.9167 MB / 440.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002722/0.3573, allocations: 1.808 MB / 441.9 MB, free: 256 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004061/0.3614, allocations: 2.085 MB / 444 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009944/0.3714, allocations: 6.372 MB / 450.3 MB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3714, allocations: 0 / 450.3 MB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3714, allocations: 0 / 450.3 MB, free: 7.758 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002956/0.3717, allocations: 0 / 450.3 MB, free: 7.758 MB / 366.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.0132/0.385, allocations: 4.583 MB / 454.9 MB, free: 3.105 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.385, allocations: 8.031 kB / 454.9 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002134/0.3872, allocations: 0.6951 MB / 455.6 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007712/0.3949, allocations: 1.945 MB / 457.6 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005879/0.4008, allocations: 2.679 MB / 460.2 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/0.4011, allocations: 233.6 kB / 460.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001061/0.4022, allocations: 291.8 kB / 460.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01833/0.4205, allocations: 9.659 MB / 470.4 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001777/0.4208, allocations: 47.53 kB / 470.5 MB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009608/0.4217, allocations: 139.9 kB / 470.6 MB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00316/0.4249, allocations: 1.919 MB / 472.5 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01593/0.4409, allocations: 7.652 MB / 480.2 MB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04853/0.4894, allocations: 37.61 MB / 0.5056 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007001/0.4964, allocations: 2.896 MB / 0.5085 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001523/0.498, allocations: 0.8771 MB / 0.5093 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006997/0.505, allocations: 3.838 MB / 0.5131 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/0.5051, allocations: 47.2 kB / 0.5131 GB, free: 10.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.867e-06/0.5051, allocations: 4 kB / 0.5131 GB, free: 10.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02467/0.5298, allocations: 9.056 MB / 0.522 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/0.53, allocations: 145.5 kB / 0.5221 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008639/0.5387, allocations: 3.932 MB / 0.5259 GB, free: 12.89 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002876/0.539, allocations: 45.7 kB / 0.526 GB, free: 12.84 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002854/0.5419, allocations: 3.086 MB / 0.529 GB, free: 9.711 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009038/0.5428, allocations: 0.6019 MB / 0.5296 GB, free: 9.102 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002574/0.5454, allocations: 1.155 MB / 0.5307 GB, free: 7.934 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.5455, allocations: 313 kB / 0.531 GB, free: 7.625 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003016/0.5486, allocations: 1.565 MB / 0.5325 GB, free: 6.055 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2543/0.8029, allocations: 5.342 MB / 0.5378 GB, free: 118.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008708/0.8117, allocations: 7.529 MB / 0.5451 GB, free: 112.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001616/0.8119, allocations: 43.34 kB / 0.5451 GB, free: 112.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.012/0.8239, allocations: 6.623 MB / 0.5516 GB, free: 110.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.8241, allocations: 61.44 kB / 0.5517 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000191/0.8243, allocations: 131.8 kB / 0.5518 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/0.8245, allocations: 179.3 kB / 0.552 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003904/0.8284, allocations: 1.374 MB / 0.5533 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000239/0.8287, allocations: 261.7 kB / 0.5536 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004239/0.8329, allocations: 290.8 kB / 0.5538 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005842/0.8335, allocations: 361.1 kB / 0.5542 GB, free: 110 MB / 462.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.002819/0.8363, allocations: 1.985 MB / 0.5561 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005591/0.8369, allocations: 336.3 kB / 0.5564 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006671/0.8376, allocations: 397 kB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/0.8376, allocations: 19.7 kB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.8376, allocations: 3.562 kB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.8377, allocations: 7.516 kB / 0.5569 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007853/0.8455, allocations: 5.754 MB / 0.5625 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-05/0.8456, allocations: 20 kB / 0.5625 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008622/0.8465, allocations: 273.9 kB / 0.5628 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.922e-05/0.8465, allocations: 24 kB / 0.5628 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.066e-05/0.8466, allocations: 58.2 kB / 0.5628 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.852e-05/0.8466, allocations: 35.62 kB / 0.5629 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/0.8466, allocations: 27.88 kB / 0.5629 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003103/0.8497, allocations: 3.239 MB / 0.5661 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009333/0.8507, allocations: 407.3 kB / 0.5664 GB, free: 99.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000516/0.8512, allocations: 55.44 kB / 0.5665 GB, free: 99.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001886/0.8531, allocations: 63.45 kB / 0.5666 GB, free: 99.86 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.8534, allocations: 146.8 kB / 0.5667 GB, free: 99.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/0.8535, allocations: 64 kB / 0.5668 GB, free: 99.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004177/0.8577, allocations: 2.442 MB / 0.5691 GB, free: 97.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8577, allocations: 4 kB / 0.5691 GB, free: 97.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007171/0.8649, allocations: 0.8378 MB / 0.57 GB, free: 96.84 MB / 462.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.005009/0.87, allocations: 3.907 MB / 0.5738 GB, free: 92.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007022/0.877, allocations: 3.669 MB / 0.5774 GB, free: 89.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.738e-05/0.8771, allocations: 0.625 kB / 0.5774 GB, free: 89.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008756/0.8779, allocations: 0.7368 MB / 0.5781 GB, free: 88.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002502/0.8805, allocations: 450.4 kB / 0.5785 GB, free: 87.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0407/0.9212, allocations: 40.22 MB / 0.6178 GB, free: 41.41 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003202/0.9244, allocations: 3.102 MB / 0.6208 GB, free: 38.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003543/0.928, allocations: 1.757 MB / 0.6225 GB, free: 36.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001897/0.9299, allocations: 1.784 MB / 0.6243 GB, free: 34.71 MB / 462.1 MB Notification: Performance of SimCode: time 2.434e-06/0.9299, allocations: 4 kB / 0.6243 GB, free: 34.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09148/1.021, allocations: 56.72 MB / 0.6797 GB, free: 10.36 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.33/18.35, allocations: 7.859 kB / 0.6797 GB, free: 10.36 MB / 494.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