Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0015/0.0015, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2185/0.2185, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 83.88 kB / 480.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3425, allocations: 62.46 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01929/0.3618, allocations: 16.15 MB / 0.5464 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01228/0.3742, allocations: 5.018 MB / 0.5513 GB, free: 12.46 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003235/0.3774, allocations: 99.75 kB / 0.5514 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01005/0.3875, allocations: 5.159 MB / 0.5564 GB, free: 7.191 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007818/0.3954, allocations: 2.477 MB / 0.5589 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003122/0.3985, allocations: 1.193 MB / 0.56 GB, free: 3.512 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.4093, allocations: 6.716 MB / 0.5666 GB, free: 12.78 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008673/0.4181, allocations: 6.342 MB / 0.5728 GB, free: 6.359 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00474/0.4228, allocations: 2.598 MB / 0.5753 GB, free: 3.754 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00567/0.4285, allocations: 3.688 MB / 0.5789 GB, free: 56 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001551/0.4301, allocations: 0.5781 MB / 0.5795 GB, free: 15.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003013/0.4331, allocations: 1.268 MB / 0.5807 GB, free: 14.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003511/0.4367, allocations: 3.211 MB / 0.5839 GB, free: 10.99 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005014/0.4417, allocations: 3.69 MB / 0.5875 GB, free: 7.277 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01411/0.4558, allocations: 11.19 MB / 0.5984 GB, free: 12.04 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.4559, allocations: 4 kB / 0.5984 GB, free: 12.04 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4559, allocations: 0 / 0.5984 GB, free: 12.04 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003674/0.4562, allocations: 0 / 0.5984 GB, free: 12.04 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2522 * Number of variables: 2522 Notification: Performance of Generate backend data structure: time 0.01751/0.4737, allocations: 7.893 MB / 0.6061 GB, free: 4.043 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.4738, allocations: 16.03 kB / 0.6061 GB, free: 4.027 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002332/0.4762, allocations: 1.194 MB / 0.6073 GB, free: 2.812 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01063/0.4868, allocations: 2.66 MB / 0.6099 GB, free: 148 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009105/0.4959, allocations: 4.284 MB / 0.6141 GB, free: 11.8 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005464/0.4965, allocations: 431 kB / 0.6145 GB, free: 11.38 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002355/0.4989, allocations: 0.5544 MB / 0.615 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.045/0.5439, allocations: 19.78 MB / 0.6343 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002195/0.5442, allocations: 67.44 kB / 0.6344 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008773/0.5451, allocations: 271.8 kB / 0.6347 GB, free: 5.578 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005264/0.5503, allocations: 3.153 MB / 0.6377 GB, free: 2.422 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04012/0.5905, allocations: 15.91 MB / 0.6533 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08683/0.6773, allocations: 63.93 MB / 0.7157 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4825/1.16, allocations: 6.389 MB / 0.7219 GB, free: 161.6 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003194/1.163, allocations: 2.118 MB / 0.724 GB, free: 160.9 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/1.175, allocations: 9.227 MB / 0.733 GB, free: 156.5 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01283/1.188, allocations: 4.195 MB / 0.7371 GB, free: 155.6 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 5.009e-06/1.188, allocations: 0 / 0.7371 GB, free: 155.6 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.05024/1.239, allocations: 21.98 MB / 0.7586 GB, free: 137.3 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/1.239, allocations: 154.5 kB / 0.7587 GB, free: 137.1 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006508/1.245, allocations: 5.806 MB / 0.7644 GB, free: 131.5 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0004903/1.246, allocations: 73.52 kB / 0.7645 GB, free: 131.4 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003221/1.249, allocations: 5.132 MB / 0.7695 GB, free: 126.5 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001085/1.25, allocations: 1.186 MB / 0.7706 GB, free: 125.4 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001784/1.252, allocations: 1.815 MB / 0.7724 GB, free: 123.5 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.879e-05/1.252, allocations: 301.1 kB / 0.7727 GB, free: 123.2 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003405/1.255, allocations: 2.653 MB / 0.7753 GB, free: 120.6 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005058/1.26, allocations: 8.208 MB / 0.7833 GB, free: 109.7 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009984/1.27, allocations: 11.81 MB / 0.7948 GB, free: 95.08 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/1.271, allocations: 56 kB / 0.7949 GB, free: 95.03 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.01606/1.287, allocations: 10.61 MB / 0.8053 GB, free: 84.41 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/1.287, allocations: 117.7 kB / 0.8054 GB, free: 84.29 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/1.287, allocations: 200.6 kB / 0.8056 GB, free: 84.09 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001753/1.287, allocations: 263.9 kB / 0.8058 GB, free: 83.84 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00616/1.293, allocations: 2.211 MB / 0.808 GB, free: 81.62 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001935/1.294, allocations: 382.5 kB / 0.8083 GB, free: 81.25 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005579/1.299, allocations: 477.5 kB / 0.8088 GB, free: 80.78 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008193/1.3, allocations: 0.5429 MB / 0.8093 GB, free: 80.24 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.twoHeadedArrow,force.forceArrow.headAtOrigin,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[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 (1175): * Single equations (assignments): 1171 * Array equations: 3 * Algorithm blocks: 1 * 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.003981/1.304, allocations: 3.151 MB / 0.8124 GB, free: 77.08 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008033/1.305, allocations: 0.5433 MB / 0.8129 GB, free: 76.53 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004452/1.309, allocations: 3.058 MB / 0.8159 GB, free: 73.45 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/1.309, allocations: 35.94 kB / 0.816 GB, free: 73.42 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/1.309, allocations: 4 kB / 0.816 GB, free: 73.41 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.048e-05/1.309, allocations: 15.94 kB / 0.816 GB, free: 73.4 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01522/1.325, allocations: 12.26 MB / 0.828 GB, free: 60.66 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.872e-05/1.325, allocations: 28 kB / 0.828 GB, free: 60.64 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/1.327, allocations: 0.5929 MB / 0.8286 GB, free: 60.04 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.821e-05/1.327, allocations: 44 kB / 0.8286 GB, free: 60 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/1.327, allocations: 91.98 kB / 0.8287 GB, free: 59.91 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-05/1.327, allocations: 63.78 kB / 0.8287 GB, free: 59.85 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.882e-05/1.327, allocations: 55.75 kB / 0.8288 GB, free: 59.79 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005761/1.333, allocations: 5.538 MB / 0.8342 GB, free: 53.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/1.334, allocations: 0.6066 MB / 0.8348 GB, free: 53.07 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005376/1.334, allocations: 103.7 kB / 0.8349 GB, free: 52.98 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00177/1.336, allocations: 147.9 kB / 0.835 GB, free: 52.84 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002913/1.336, allocations: 283.9 kB / 0.8353 GB, free: 52.56 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.337, allocations: 120 kB / 0.8354 GB, free: 52.44 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004641/1.341, allocations: 3.598 MB / 0.8389 GB, free: 48.88 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.2e-07/1.341, allocations: 0 / 0.8389 GB, free: 48.88 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006721/1.348, allocations: 1.41 MB / 0.8403 GB, free: 47.46 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (278): * Single equations (assignments): 273 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.006626/1.355, allocations: 6.27 MB / 0.8464 GB, free: 40.65 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008695/1.363, allocations: 6.155 MB / 0.8525 GB, free: 34.52 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 2.572e-05/1.363, allocations: 8.062 kB / 0.8525 GB, free: 34.51 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.002689/1.366, allocations: 1.625 MB / 0.854 GB, free: 32.89 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004086/1.37, allocations: 0.7667 MB / 0.8548 GB, free: 32.14 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1003/1.471, allocations: 67.86 MB / 0.9211 GB, free: 2.219 MB / 0.6076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007605/1.478, allocations: 4.76 MB / 0.9257 GB, free: 13.43 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.006302/1.485, allocations: 2.575 MB / 0.9282 GB, free: 10.85 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004858/1.489, allocations: 3.159 MB / 0.9313 GB, free: 7.688 MB / 0.6232 GB Notification: Performance of SimCode: time 1.012e-06/1.489, allocations: 0 / 0.9313 GB, free: 7.688 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4343/1.924, allocations: 93.55 MB / 1.023 GB, free: 170.5 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.11/25.03, allocations: 8 kB / 1.023 GB, free: 170.5 MB / 0.6388 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches