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.001489/0.001489, allocations: 122.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002288/0.002288, allocations: 206 kB / 18.73 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2483, allocations: 50.55 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01182/0.2602, allocations: 10.65 MB / 419.4 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007305/0.2675, allocations: 3.892 MB / 423.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001278/0.2688, allocations: 63.81 kB / 423.4 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003841/0.2727, allocations: 2.227 MB / 425.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003802/0.2766, allocations: 1.793 MB / 427.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001496/0.2781, allocations: 0.7136 MB / 428.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005191/0.2833, allocations: 4.312 MB / 432.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003304/0.2866, allocations: 2.895 MB / 435.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002031/0.2886, allocations: 1.456 MB / 436.8 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003005/0.2917, allocations: 2.079 MB / 438.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009437/0.2926, allocations: 292 kB / 439.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001821/0.2945, allocations: 0.9207 MB / 440.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001479/0.2959, allocations: 1.804 MB / 441.9 MB, free: 280 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002056/0.298, allocations: 2.089 MB / 443.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005702/0.3037, allocations: 6.368 MB / 450.3 MB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3038, allocations: 0 / 450.3 MB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3038, allocations: 0 / 450.3 MB, free: 7.781 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001016/0.3039, allocations: 0 / 450.3 MB, free: 7.781 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.006824/0.3107, allocations: 4.583 MB / 454.9 MB, free: 3.129 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3108, allocations: 8.031 kB / 454.9 MB, free: 3.121 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007487/0.3115, allocations: 0.7028 MB / 455.6 MB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007063/0.3186, allocations: 1.941 MB / 457.5 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005448/0.3241, allocations: 2.682 MB / 460.2 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.3243, allocations: 229.6 kB / 460.5 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006049/0.3249, allocations: 295.8 kB / 460.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01633/0.3412, allocations: 9.659 MB / 470.4 MB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001728/0.3414, allocations: 43.53 kB / 470.4 MB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000899/0.3423, allocations: 155.8 kB / 470.6 MB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002861/0.3452, allocations: 1.915 MB / 472.5 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01479/0.36, allocations: 7.649 MB / 480.2 MB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04253/0.4026, allocations: 37.6 MB / 0.5056 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006548/0.4092, allocations: 2.897 MB / 0.5085 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00129/0.4105, allocations: 0.8766 MB / 0.5093 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006034/0.4166, allocations: 3.838 MB / 0.5131 GB, free: 10.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.4166, allocations: 47.22 kB / 0.5131 GB, free: 10.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.747e-06/0.4167, allocations: 0 / 0.5131 GB, free: 10.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02189/0.4385, allocations: 9.068 MB / 0.522 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.63e-05/0.4387, allocations: 141.5 kB / 0.5221 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007223/0.4459, allocations: 3.932 MB / 0.5259 GB, free: 12.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002245/0.4462, allocations: 45.7 kB / 0.526 GB, free: 12.85 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002145/0.4483, allocations: 3.085 MB / 0.529 GB, free: 9.723 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006715/0.449, allocations: 0.6019 MB / 0.5296 GB, free: 9.113 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001925/0.451, allocations: 1.159 MB / 0.5307 GB, free: 7.941 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.202e-05/0.4511, allocations: 305.1 kB / 0.531 GB, free: 7.641 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002624/0.4537, allocations: 1.573 MB / 0.5325 GB, free: 6.062 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2497/0.7034, allocations: 5.333 MB / 0.5377 GB, free: 118.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008694/0.7122, allocations: 7.53 MB / 0.5451 GB, free: 112.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001835/0.7124, allocations: 43.44 kB / 0.5451 GB, free: 112.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.00974/0.7222, allocations: 6.627 MB / 0.5516 GB, free: 110.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.658e-05/0.7223, allocations: 61.88 kB / 0.5517 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001047/0.7224, allocations: 134.3 kB / 0.5518 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001278/0.7225, allocations: 176 kB / 0.552 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003354/0.7259, allocations: 1.375 MB / 0.5533 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000145/0.726, allocations: 261 kB / 0.5536 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003205/0.7292, allocations: 288.7 kB / 0.5538 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003835/0.7296, allocations: 363.8 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.002273/0.7319, allocations: 1.984 MB / 0.5561 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005408/0.7325, allocations: 335.3 kB / 0.5564 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005975/0.7331, allocations: 398.9 kB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-05/0.7331, allocations: 20 kB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.7331, allocations: 3.562 kB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.7331, allocations: 3.75 kB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007835/0.741, allocations: 5.759 MB / 0.5625 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.017e-05/0.7411, allocations: 18.5 kB / 0.5625 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008664/0.7419, allocations: 274 kB / 0.5628 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.027e-05/0.742, allocations: 28 kB / 0.5628 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.406e-05/0.742, allocations: 51.75 kB / 0.5628 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.448e-05/0.7421, allocations: 42.34 kB / 0.5629 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.327e-05/0.7421, allocations: 27.88 kB / 0.5629 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/0.745, allocations: 3.233 MB / 0.5661 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008001/0.7458, allocations: 411.4 kB / 0.5664 GB, free: 99.92 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002775/0.7461, allocations: 47.7 kB / 0.5665 GB, free: 99.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009846/0.7471, allocations: 57.94 kB / 0.5665 GB, free: 99.83 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.7473, allocations: 152.9 kB / 0.5667 GB, free: 99.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.599e-05/0.7473, allocations: 67.75 kB / 0.5668 GB, free: 99.65 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002933/0.7503, allocations: 2.437 MB / 0.5691 GB, free: 97.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7503, allocations: 4 kB / 0.5691 GB, free: 97.65 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004149/0.7545, allocations: 0.8448 MB / 0.57 GB, free: 96.82 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.00323/0.7577, allocations: 3.903 MB / 0.5738 GB, free: 92.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00489/0.7626, allocations: 3.661 MB / 0.5773 GB, free: 89.08 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-05/0.7627, allocations: 4.75 kB / 0.5774 GB, free: 89.08 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008158/0.7635, allocations: 0.7423 MB / 0.5781 GB, free: 88.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00262/0.7661, allocations: 449.3 kB / 0.5785 GB, free: 87.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04819/0.8143, allocations: 40.22 MB / 0.6178 GB, free: 41.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002678/0.817, allocations: 3.095 MB / 0.6208 GB, free: 38.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003343/0.8204, allocations: 1.76 MB / 0.6225 GB, free: 36.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/0.8224, allocations: 1.788 MB / 0.6243 GB, free: 34.73 MB / 462.1 MB Notification: Performance of SimCode: time 1.242e-06/0.8224, allocations: 4 kB / 0.6243 GB, free: 34.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09056/0.9129, allocations: 56.72 MB / 0.6797 GB, free: 10.38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18/18.91, allocations: 22.58 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