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.0008326/0.0008327, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009425/0.0009425, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002099/0.0002099, allocations: 11.94 kB / 307.8 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09073/0.09096, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1802/0.2712, allocations: 37.32 MB / 396.7 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01697/0.2882, allocations: 8.347 MB / 405 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004975/0.2932, allocations: 167.6 kB / 405.2 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009093/0.2941, allocations: 410.7 kB / 405.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003593/0.2977, allocations: 1.694 MB / 407.3 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.299, allocations: 0.6567 MB / 407.9 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005491/0.3045, allocations: 5.941 MB / 413.9 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004557/0.3091, allocations: 3.686 MB / 417.6 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001802/0.3109, allocations: 1.144 MB / 418.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002519/0.3134, allocations: 2.017 MB / 420.7 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005267/0.314, allocations: 140 kB / 420.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001549/0.3155, allocations: 0.8228 MB / 421.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001553/0.3171, allocations: 1.652 MB / 423.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001837/0.319, allocations: 1.919 MB / 425.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004485/0.3235, allocations: 5.909 MB / 431.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3235, allocations: 0 / 431.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3235, allocations: 0 / 431.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.946e-05/0.3236, allocations: 0 / 431.2 MB, free: 2.941 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.005253/0.3288, allocations: 3.776 MB / 434.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.3289, allocations: 8.031 kB / 435 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000681/0.3295, allocations: 0.695 MB / 435.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006667/0.3362, allocations: 1.988 MB / 437.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003644/0.3399, allocations: 2.644 MB / 440.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.34, allocations: 221.6 kB / 440.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004399/0.3405, allocations: 299.8 kB / 440.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01187/0.3524, allocations: 9.682 MB / 450.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.71e-05/0.3525, allocations: 51.53 kB / 450.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000306/0.3528, allocations: 139.9 kB / 450.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002453/0.3552, allocations: 1.927 MB / 452.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01172/0.367, allocations: 7.668 MB / 460.3 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03363/0.4006, allocations: 37.76 MB / 498 MB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006231/0.4069, allocations: 2.905 MB / 0.4892 GB, free: 10.92 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.4081, allocations: 0.8652 MB / 0.49 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0048/0.4129, allocations: 3.838 MB / 0.4938 GB, free: 5.984 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.4129, allocations: 55.2 kB / 0.4938 GB, free: 5.922 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.206e-06/0.413, allocations: 0 / 0.4938 GB, free: 5.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.01935/0.4323, allocations: 9.09 MB / 0.5027 GB, free: 12.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.4324, allocations: 145.8 kB / 0.5028 GB, free: 12.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004942/0.4373, allocations: 3.921 MB / 0.5067 GB, free: 8.641 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.318e-05/0.4374, allocations: 49.7 kB / 0.5067 GB, free: 8.586 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001788/0.4392, allocations: 3.085 MB / 0.5097 GB, free: 5.457 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004166/0.4396, allocations: 0.6096 MB / 0.5103 GB, free: 4.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004958/0.4401, allocations: 498.9 kB / 0.5108 GB, free: 4.344 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.469e-05/0.4402, allocations: 305.1 kB / 0.5111 GB, free: 4.043 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002391/0.4426, allocations: 1.569 MB / 0.5126 GB, free: 2.469 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004479/0.4471, allocations: 5.35 MB / 0.5179 GB, free: 11.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007105/0.4542, allocations: 7.53 MB / 0.5252 GB, free: 1.812 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-05/0.4543, allocations: 36 kB / 0.5252 GB, free: 1.777 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.1617/0.6161, allocations: 6.63 MB / 0.5317 GB, free: 140 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.638e-05/0.6162, allocations: 63.91 kB / 0.5318 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.6163, allocations: 134.7 kB / 0.5319 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.6165, allocations: 175.4 kB / 0.5321 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003294/0.6198, allocations: 1.373 MB / 0.5334 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001856/0.62, allocations: 261.7 kB / 0.5337 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002761/0.6227, allocations: 286.4 kB / 0.5339 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003587/0.6231, allocations: 364.5 kB / 0.5343 GB, free: 139.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.002267/0.6254, allocations: 1.984 MB / 0.5362 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.6257, allocations: 340 kB / 0.5365 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005875/0.6263, allocations: 399.8 kB / 0.5369 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/0.6263, allocations: 18.11 kB / 0.5369 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.6264, allocations: 5.469 kB / 0.5369 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.6264, allocations: 7.031 kB / 0.537 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007361/0.6337, allocations: 5.77 MB / 0.5426 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/0.6338, allocations: 17.88 kB / 0.5426 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008604/0.6346, allocations: 281.2 kB / 0.5429 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.438e-05/0.6347, allocations: 24.31 kB / 0.5429 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-05/0.6348, allocations: 47.88 kB / 0.5429 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.697e-05/0.6348, allocations: 41.41 kB / 0.543 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-05/0.6348, allocations: 28.91 kB / 0.543 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.6377, allocations: 3.24 MB / 0.5462 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004243/0.6381, allocations: 414.9 kB / 0.5466 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.6384, allocations: 51.14 kB / 0.5466 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009349/0.6393, allocations: 65.89 kB / 0.5467 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.6395, allocations: 148.8 kB / 0.5468 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.659e-05/0.6395, allocations: 65.11 kB / 0.5469 GB, free: 134.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002426/0.642, allocations: 2.439 MB / 0.5493 GB, free: 133.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.642, allocations: 3.781 kB / 0.5493 GB, free: 133.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0034/0.6454, allocations: 0.8401 MB / 0.5501 GB, free: 133.3 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.002863/0.6483, allocations: 3.917 MB / 0.5539 GB, free: 130.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004453/0.6527, allocations: 3.624 MB / 0.5575 GB, free: 129.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.6527, allocations: 4.5 kB / 0.5575 GB, free: 129.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007123/0.6535, allocations: 0.7383 MB / 0.5582 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009899/0.6634, allocations: 440.3 kB / 0.5586 GB, free: 128.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03918/0.7026, allocations: 47.37 MB / 0.6049 GB, free: 74.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/0.7048, allocations: 3.095 MB / 0.6079 GB, free: 71.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003394/0.7082, allocations: 1.76 MB / 0.6096 GB, free: 69.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/0.7096, allocations: 1.788 MB / 0.6114 GB, free: 67.53 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.7096, allocations: 0 / 0.6114 GB, free: 67.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0586/0.7682, allocations: 58.21 MB / 0.6682 GB, free: 9.641 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/0.7684, allocations: 238.4 kB / 0.6684 GB, free: 9.375 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.906/3.674, allocations: 0 / 0.6684 GB, free: 9.375 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