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.001268/0.001268, allocations: 108 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 69.97 kB / 306.6 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08211/0.0835, allocations: 50.52 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1755/0.259, allocations: 38.41 MB / 395.5 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01877/0.2778, allocations: 8.314 MB / 403.8 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007159/0.285, allocations: 162.9 kB / 404 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004629/0.2897, allocations: 2.123 MB / 406.1 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004553/0.2943, allocations: 1.684 MB / 407.8 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.296, allocations: 0.6676 MB / 408.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005386/0.3014, allocations: 4.32 MB / 412.8 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003882/0.3053, allocations: 3.072 MB / 415.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002382/0.3077, allocations: 1.483 MB / 417.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00305/0.3108, allocations: 2.302 MB / 419.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000901/0.3117, allocations: 296 kB / 419.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002311/0.314, allocations: 0.9323 MB / 420.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002073/0.3161, allocations: 1.819 MB / 422.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002625/0.3187, allocations: 2.108 MB / 424.8 MB, free: 7.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006407/0.3251, allocations: 6.172 MB / 430.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3252, allocations: 0 / 430.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3252, allocations: 0 / 430.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002433/0.3254, allocations: 4 kB / 430.9 MB, free: 1.586 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.008147/0.3336, allocations: 4.587 MB / 435.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.3337, allocations: 12.03 kB / 435.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008484/0.3345, allocations: 0.6912 MB / 436.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006887/0.3414, allocations: 1.941 MB / 438.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004499/0.3459, allocations: 2.636 MB / 440.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.3461, allocations: 229.6 kB / 441 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000664/0.3468, allocations: 303.8 kB / 441.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01526/0.3621, allocations: 9.647 MB / 451 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001366/0.3623, allocations: 51.58 kB / 451 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006943/0.363, allocations: 143.9 kB / 451.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002827/0.3658, allocations: 1.915 MB / 453.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01534/0.3812, allocations: 7.645 MB / 460.7 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04268/0.4239, allocations: 37.76 MB / 498.5 MB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006585/0.4305, allocations: 2.893 MB / 0.4896 GB, free: 8.887 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.4318, allocations: 0.8652 MB / 0.4905 GB, free: 8.012 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00569/0.4376, allocations: 3.846 MB / 0.4942 GB, free: 3.945 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/0.4376, allocations: 51.16 kB / 0.4943 GB, free: 3.887 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.378e-06/0.4376, allocations: 0 / 0.4943 GB, free: 3.887 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02103/0.4587, allocations: 9.075 MB / 0.5031 GB, free: 10.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.4588, allocations: 145.5 kB / 0.5033 GB, free: 10.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006977/0.4658, allocations: 3.928 MB / 0.5071 GB, free: 6.613 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001614/0.466, allocations: 45.7 kB / 0.5072 GB, free: 6.562 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002007/0.468, allocations: 3.082 MB / 0.5102 GB, free: 3.438 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006123/0.4686, allocations: 0.6057 MB / 0.5108 GB, free: 2.824 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001613/0.4702, allocations: 1.155 MB / 0.5119 GB, free: 1.656 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.396e-05/0.4703, allocations: 305.1 kB / 0.5122 GB, free: 1.355 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002323/0.4726, allocations: 1.573 MB / 0.5137 GB, free: 15.78 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004546/0.4772, allocations: 5.342 MB / 0.5189 GB, free: 8.535 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1843/0.6615, allocations: 7.521 MB / 0.5263 GB, free: 139.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/0.6616, allocations: 38.06 kB / 0.5263 GB, free: 139.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01005/0.6717, allocations: 6.624 MB / 0.5328 GB, free: 138 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.765e-05/0.6718, allocations: 64.16 kB / 0.5328 GB, free: 138 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/0.6719, allocations: 133.8 kB / 0.533 GB, free: 138 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001933/0.6721, allocations: 179.1 kB / 0.5331 GB, free: 138 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003771/0.6759, allocations: 1.372 MB / 0.5345 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002316/0.6762, allocations: 264.1 kB / 0.5347 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003222/0.6794, allocations: 281.7 kB / 0.535 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004206/0.6798, allocations: 365.2 kB / 0.5353 GB, free: 137.6 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.002457/0.6823, allocations: 1.982 MB / 0.5373 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000422/0.6827, allocations: 335.8 kB / 0.5376 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005976/0.6833, allocations: 399.6 kB / 0.538 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/0.6833, allocations: 16.72 kB / 0.538 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.6834, allocations: 9.141 kB / 0.538 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.6834, allocations: 7.547 kB / 0.538 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007629/0.691, allocations: 5.759 MB / 0.5436 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/0.6911, allocations: 19.62 kB / 0.5437 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008726/0.6919, allocations: 278.5 kB / 0.5439 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.85e-05/0.692, allocations: 24.91 kB / 0.5439 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.217e-05/0.6921, allocations: 52.81 kB / 0.544 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.111e-05/0.6921, allocations: 36.23 kB / 0.544 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.678e-05/0.6921, allocations: 30.16 kB / 0.5441 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002944/0.695, allocations: 3.233 MB / 0.5472 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005066/0.6956, allocations: 410.8 kB / 0.5476 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002866/0.6959, allocations: 53.38 kB / 0.5477 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.6969, allocations: 57.05 kB / 0.5477 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.697, allocations: 150.6 kB / 0.5479 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.163e-05/0.6971, allocations: 63.28 kB / 0.5479 GB, free: 131.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002876/0.7, allocations: 2.448 MB / 0.5503 GB, free: 130.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7, allocations: 0 / 0.5503 GB, free: 130.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004322/0.7043, allocations: 0.8318 MB / 0.5511 GB, free: 130.7 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.003172/0.7075, allocations: 3.907 MB / 0.5549 GB, free: 128.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004766/0.7123, allocations: 3.801 MB / 0.5587 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.549e-05/0.7123, allocations: 3.75 kB / 0.5587 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007859/0.7131, allocations: 0.7323 MB / 0.5594 GB, free: 126.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.7156, allocations: 456.3 kB / 0.5598 GB, free: 126.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04739/0.763, allocations: 47.28 MB / 0.606 GB, free: 72.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00236/0.7654, allocations: 3.091 MB / 0.609 GB, free: 69.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00357/0.7689, allocations: 1.772 MB / 0.6107 GB, free: 67.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001757/0.7707, allocations: 1.784 MB / 0.6125 GB, free: 65.52 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.7707, allocations: 0 / 0.6125 GB, free: 65.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.45/2.221, allocations: 59.6 MB / 0.6707 GB, free: 6.25 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002469/2.221, allocations: 225.5 kB / 0.6709 GB, free: 5.992 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.522/6.743, allocations: 0 / 0.6709 GB, free: 5.992 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