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.001187/0.001187, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001214/0.001214, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 46.09 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001605, allocations: 80.03 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1184, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.02142/0.1399, allocations: 16.14 MB / 496.3 MB, free: 4.988 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.1536, allocations: 5.028 MB / 0.4895 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004231/0.1579, allocations: 95.75 kB / 0.4896 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01077/0.1687, allocations: 5.159 MB / 0.4947 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008891/0.1777, allocations: 2.478 MB / 0.4971 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003575/0.1813, allocations: 1.182 MB / 0.4982 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.1917, allocations: 6.72 MB / 0.5048 GB, free: 280 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2399/0.4317, allocations: 6.353 MB / 0.511 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004939/0.4367, allocations: 2.593 MB / 0.5135 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006076/0.4428, allocations: 3.692 MB / 0.5172 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002658/0.4455, allocations: 0.5764 MB / 0.5177 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0056/0.4511, allocations: 1.273 MB / 0.519 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005177/0.4563, allocations: 3.21 MB / 0.5221 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006389/0.4627, allocations: 3.687 MB / 0.5257 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.4746, allocations: 10.76 MB / 0.5362 GB, free: 3.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.4746, allocations: 0 / 0.5362 GB, free: 3.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4746, allocations: 0 / 0.5362 GB, free: 3.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003965/0.475, allocations: 0 / 0.5362 GB, free: 3.898 MB / 382.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.01692/0.4919, allocations: 7.709 MB / 0.5437 GB, free: 14.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.492, allocations: 10.34 kB / 0.5437 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003157/0.4952, allocations: 1.187 MB / 0.5449 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01162/0.5068, allocations: 2.615 MB / 0.5475 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008853/0.5157, allocations: 4.207 MB / 0.5516 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003876/0.5161, allocations: 429.9 kB / 0.552 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00194/0.5181, allocations: 0.5567 MB / 0.5525 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04176/0.5598, allocations: 19.79 MB / 0.5718 GB, free: 3.422 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002001/0.5601, allocations: 69.28 kB / 0.5719 GB, free: 3.387 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000758/0.5608, allocations: 270.3 kB / 0.5722 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004813/0.5657, allocations: 3.15 MB / 0.5752 GB, free: 76 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03831/0.604, allocations: 15.92 MB / 0.5908 GB, free: 444 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08433/0.6884, allocations: 64.08 MB / 0.6534 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01903/0.7075, allocations: 6.408 MB / 0.6596 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003774/0.7113, allocations: 2.079 MB / 0.6616 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01644/0.7277, allocations: 9.202 MB / 0.6706 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01453/0.7423, allocations: 4.191 MB / 0.6747 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=260): time 5.771e-06/0.7424, allocations: 0 / 0.6747 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of matching and sorting (n=294): time 0.06387/0.8062, allocations: 21.61 MB / 0.6958 GB, free: 3.598 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.8064, allocations: 171 kB / 0.696 GB, free: 3.402 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00978/0.8162, allocations: 5.793 MB / 0.7016 GB, free: 13.63 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005969/0.8168, allocations: 65.7 kB / 0.7017 GB, free: 13.56 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004947/0.8218, allocations: 4.935 MB / 0.7065 GB, free: 8.629 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00166/0.8235, allocations: 1.129 MB / 0.7076 GB, free: 7.508 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003837/0.8273, allocations: 1.805 MB / 0.7094 GB, free: 5.688 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.8275, allocations: 305.1 kB / 0.7097 GB, free: 5.387 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005067/0.8325, allocations: 2.645 MB / 0.7123 GB, free: 2.734 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2626/1.095, allocations: 8.2 MB / 0.7203 GB, free: 183 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01503/1.11, allocations: 11.81 MB / 0.7318 GB, free: 173.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004389/1.111, allocations: 55.41 kB / 0.7319 GB, free: 173.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.02421/1.135, allocations: 10.59 MB / 0.7422 GB, free: 169.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000239/1.135, allocations: 121.4 kB / 0.7423 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003213/1.136, allocations: 199.4 kB / 0.7425 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003587/1.136, allocations: 261.4 kB / 0.7428 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00725/1.143, allocations: 2.203 MB / 0.7449 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003747/1.144, allocations: 393.6 kB / 0.7453 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00646/1.15, allocations: 469.4 kB / 0.7457 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00123/1.151, allocations: 0.5427 MB / 0.7463 GB, free: 169.2 MB / 0.545 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.005075/1.156, allocations: 3.145 MB / 0.7493 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007241/1.157, allocations: 0.5126 MB / 0.7498 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004641/1.162, allocations: 3.073 MB / 0.7528 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-05/1.162, allocations: 27.5 kB / 0.7529 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/1.162, allocations: 3.938 kB / 0.7529 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.538e-05/1.162, allocations: 17.48 kB / 0.7529 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/1.179, allocations: 12.28 MB / 0.7649 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-05/1.179, allocations: 32 kB / 0.7649 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/1.181, allocations: 0.5859 MB / 0.7655 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.531e-05/1.181, allocations: 47.38 kB / 0.7655 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001851/1.181, allocations: 101.5 kB / 0.7656 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.814e-05/1.181, allocations: 63.22 kB / 0.7657 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.982e-05/1.181, allocations: 47.81 kB / 0.7657 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006079/1.187, allocations: 5.507 MB / 0.7711 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/1.189, allocations: 0.5785 MB / 0.7717 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006975/1.19, allocations: 100.4 kB / 0.7718 GB, free: 153.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002004/1.192, allocations: 157.4 kB / 0.7719 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000309/1.192, allocations: 278.8 kB / 0.7722 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/1.192, allocations: 116.8 kB / 0.7723 GB, free: 153.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005737/1.198, allocations: 3.605 MB / 0.7758 GB, free: 150.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.01e-07/1.198, allocations: 3.281 kB / 0.7758 GB, free: 150.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01136/1.209, allocations: 1.41 MB / 0.7772 GB, free: 149.1 MB / 0.545 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.01062/1.22, allocations: 6.231 MB / 0.7833 GB, free: 142.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01574/1.236, allocations: 6.673 MB / 0.7898 GB, free: 137 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.512e-05/1.236, allocations: 4 kB / 0.7898 GB, free: 137 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004179/1.24, allocations: 1.633 MB / 0.7914 GB, free: 135.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006684/1.247, allocations: 0.7687 MB / 0.7921 GB, free: 134.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.116/1.363, allocations: 81.47 MB / 0.8717 GB, free: 39.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005258/1.368, allocations: 4.757 MB / 0.8764 GB, free: 35.14 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006308/1.374, allocations: 2.579 MB / 0.8789 GB, free: 32.56 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005103/1.379, allocations: 3.155 MB / 0.8819 GB, free: 29.4 MB / 0.545 GB Notification: Performance of SimCode: time 2.074e-06/1.379, allocations: 0 / 0.8819 GB, free: 29.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4202/1.8, allocations: 99.38 MB / 0.979 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/12.78, allocations: 3.516 kB / 0.979 GB, free: 172.1 MB / 0.5606 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.csv --start-time 0 --stop-time 7 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0028 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.csv","/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