Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 104.1 kB / 17.58 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001981/0.001982, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.345/2.345, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 51.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1256, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.00659/0.1323, allocations: 2.405 MB / 329.8 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1337, allocations: 243.1 kB / 330 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005882/0.1343, allocations: 4 kB / 330 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004382/0.1348, allocations: 43.58 kB / 330.1 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000638/0.1355, allocations: 79.2 kB / 330.1 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.136, allocations: 63.94 kB / 330.2 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008756/0.1369, allocations: 286.7 kB / 330.5 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004407/0.1374, allocations: 97.97 kB / 330.6 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002938/0.1377, allocations: 111.6 kB / 330.7 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003002/0.138, allocations: 119.4 kB / 330.8 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-05/0.1381, allocations: 24 kB / 330.8 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.58e-05/0.1382, allocations: 24 kB / 330.9 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.595e-05/0.1383, allocations: 47.84 kB / 330.9 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002306/0.1385, allocations: 139.3 kB / 331 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004738/0.139, allocations: 286.9 kB / 331.3 MB, free: 428 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.139, allocations: 0 / 331.3 MB, free: 428 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1391, allocations: 0 / 331.3 MB, free: 428 kB / 270.1 MB Notification: Performance of Transformations before backend: time 2.306e-05/0.1391, allocations: 0 / 331.3 MB, free: 428 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001386/0.1405, allocations: 0.5497 MB / 331.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/0.1406, allocations: 8.031 kB / 331.9 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.1407, allocations: 54.73 kB / 331.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.1408, allocations: 28.66 kB / 332 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004806/0.1413, allocations: 244.5 kB / 332.2 MB, free: 15.44 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.346e-05/0.1414, allocations: 20.94 kB / 332.2 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.482e-05/0.1415, allocations: 28.36 kB / 332.2 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000731/0.1422, allocations: 240 kB / 332.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.709e-05/0.1423, allocations: 11.78 kB / 332.5 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.227e-05/0.1423, allocations: 15.98 kB / 332.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.1423, allocations: 4 kB / 332.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004738/0.1428, allocations: 155.9 kB / 332.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.1446, allocations: 0.797 MB / 333.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007563/0.1454, allocations: 291.7 kB / 333.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003638/0.1457, allocations: 142.5 kB / 333.9 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.1458, allocations: 4 kB / 333.9 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.1459, allocations: 34.56 kB / 333.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=33): time 5.761e-06/0.1459, allocations: 0 / 333.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004061/0.1499, allocations: 1.946 MB / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.278e-05/0.1501, allocations: 114.7 kB / 336 MB, free: 11.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.1504, allocations: 202.5 kB / 336.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.1504, allocations: 29.7 kB / 336.2 MB, free: 11 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.1506, allocations: 136.7 kB / 336.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/0.1508, allocations: 161.6 kB / 336.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.1509, allocations: 70.14 kB / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.1511, allocations: 342.8 kB / 336.9 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.1514, allocations: 88.84 kB / 337 MB, free: 10.2 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003098/0.1517, allocations: 158.3 kB / 337.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006179/0.1523, allocations: 273.9 kB / 337.4 MB, free: 9.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.1524, allocations: 4 kB / 337.4 MB, free: 9.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008647/0.1532, allocations: 346.1 kB / 337.7 MB, free: 9.383 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.1533, allocations: 7.938 kB / 337.8 MB, free: 9.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1533, allocations: 0 / 337.8 MB, free: 9.375 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.456e-05/0.1534, allocations: 4 kB / 337.8 MB, free: 9.371 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005982/0.154, allocations: 99.83 kB / 337.9 MB, free: 9.273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.049e-05/0.154, allocations: 4 kB / 337.9 MB, free: 9.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.1542, allocations: 8 kB / 337.9 MB, free: 9.262 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.834e-05/0.1543, allocations: 12 kB / 337.9 MB, free: 9.25 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * Array equations: 0 * 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.0002458/0.1546, allocations: 153.9 kB / 338 MB, free: 9.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.1547, allocations: 31.64 kB / 338.1 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.1549, allocations: 33.88 kB / 338.1 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.1549, allocations: 8 kB / 338.1 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/0.1549, allocations: 0 / 338.1 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.1549, allocations: 8.906 kB / 338.1 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.1573, allocations: 1.054 MB / 339.2 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.1573, allocations: 4 kB / 339.2 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006347/0.158, allocations: 91.89 kB / 339.3 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.516e-05/0.158, allocations: 11.97 kB / 339.3 MB, free: 7.766 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.158, allocations: 11.94 kB / 339.3 MB, free: 7.754 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.298e-06/0.1581, allocations: 4 kB / 339.3 MB, free: 7.75 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.1581, allocations: 4.281 kB / 339.3 MB, free: 7.746 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.1594, allocations: 0.7247 MB / 340 MB, free: 6.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.1596, allocations: 108.8 kB / 340.1 MB, free: 6.855 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.797e-05/0.1597, allocations: 8 kB / 340.1 MB, free: 6.848 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003824/0.1601, allocations: 12 kB / 340.1 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/0.1602, allocations: 39.89 kB / 340.2 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.522e-05/0.1602, allocations: 16 kB / 340.2 MB, free: 6.781 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001896/0.1604, allocations: 144.2 kB / 340.3 MB, free: 6.641 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1604, allocations: 0 / 340.3 MB, free: 6.641 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008068/0.1612, allocations: 72 kB / 340.4 MB, free: 6.57 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * 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 (45): * Single equations (assignments): 45 * Array equations: 0 * 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.001662/0.1629, allocations: 1.259 MB / 341.7 MB, free: 5.254 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007949/0.1637, allocations: 290.9 kB / 342 MB, free: 4.973 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.1637, allocations: 3.938 kB / 342 MB, free: 4.969 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003011/0.164, allocations: 140.5 kB / 342.1 MB, free: 4.832 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.1654, allocations: 66.47 kB / 342.2 MB, free: 4.77 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006504/0.1719, allocations: 3.297 MB / 345.5 MB, free: 1.285 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.1726, allocations: 0.772 MB / 346.2 MB, free: 500 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002665/0.1729, allocations: 34.95 kB / 346.3 MB, free: 468 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/0.1731, allocations: 91.41 kB / 346.3 MB, free: 380 kB / 286.1 MB Notification: Performance of SimCode: time 1.573e-06/0.1732, allocations: 4 kB / 346.4 MB, free: 376 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04237/0.2155, allocations: 5.809 MB / 352.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.29, allocations: 12.36 kB / 352.2 MB, free: 10.48 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches