Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",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.001516/0.001515, allocations: 104 kB / 17.63 MB, free: 5.543 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.001792/0.001793, allocations: 192.1 kB / 18.56 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2208/0.2208, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002509/0.002509, allocations: 69.56 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.156, allocations: 60.82 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.004563/0.1607, allocations: 1.441 MB / 470.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.1619, allocations: 415 kB / 471.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.142e-05/0.162, allocations: 0 / 471.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.726e-05/0.162, allocations: 3.984 kB / 471.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.509e-05/0.1621, allocations: 7.922 kB / 471.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002593/0.1624, allocations: 15.92 kB / 471.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.1625, allocations: 35.92 kB / 471.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.1627, allocations: 7.984 kB / 471.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.1628, allocations: 19.92 kB / 471.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.43e-05/0.1629, allocations: 19.91 kB / 471.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.163, allocations: 7.938 kB / 471.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.821e-05/0.163, allocations: 4 kB / 471.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.548e-05/0.163, allocations: 4 kB / 471.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.72e-05/0.1631, allocations: 15.92 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.1632, allocations: 35.89 kB / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.1633, allocations: 4 kB / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1633, allocations: 0 / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1633, allocations: 0 / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006208/0.1639, allocations: 343.7 kB / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.164, allocations: 12.03 kB / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.421e-05/0.1641, allocations: 34.69 kB / 471.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.876e-05/0.1641, allocations: 4.844 kB / 471.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.1643, allocations: 172.3 kB / 471.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1643, allocations: 4.375 kB / 471.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.1643, allocations: 4.375 kB / 471.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.1646, allocations: 63.52 kB / 472 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1646, allocations: 3.938 kB / 472 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.1646, allocations: 0 / 472 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1647, allocations: 0 / 472 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.1648, allocations: 19.98 kB / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005184/0.1654, allocations: 268.8 kB / 472.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.1655, allocations: 30.56 kB / 472.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.829e-05/0.1656, allocations: 16.91 kB / 472.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.1656, allocations: 0 / 472.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.1657, allocations: 38.44 kB / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.1657, allocations: 4 kB / 472.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003858/0.1661, allocations: 61.67 kB / 472.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.1662, allocations: 81.11 kB / 472.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.1663, allocations: 109.8 kB / 472.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.1664, allocations: 29.7 kB / 472.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.566e-05/0.1664, allocations: 84.14 kB / 472.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.1665, allocations: 7.906 kB / 472.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.594e-05/0.1666, allocations: 21.83 kB / 472.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1667, allocations: 318.8 kB / 473.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.163e-05/0.1668, allocations: 11.98 kB / 473.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.1669, allocations: 25.66 kB / 473.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001356/0.1671, allocations: 24.84 kB / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1671, allocations: 0 / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002244/0.1673, allocations: 65.7 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.1674, allocations: 4 kB / 473.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.1674, allocations: 4 kB / 473.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.1674, allocations: 0 / 473.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.579e-05/0.1675, allocations: 4 kB / 473.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1675, allocations: 3.984 kB / 473.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.697e-05/0.1677, allocations: 8 kB / 473.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.1677, allocations: 3.938 kB / 473.2 MB, free: 10.15 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001252/0.1678, allocations: 125.7 kB / 473.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.179e-05/0.1679, allocations: 8.031 kB / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.902e-05/0.1679, allocations: 11.47 kB / 473.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.1679, allocations: 4 kB / 473.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.168, allocations: 0 / 473.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.168, allocations: 0 / 473.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002527/0.1682, allocations: 165.6 kB / 473.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1683, allocations: 0 / 473.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.827e-05/0.1683, allocations: 4 kB / 473.5 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1683, allocations: 0 / 473.5 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.1684, allocations: 3.984 kB / 473.5 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1684, allocations: 4 kB / 473.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.1684, allocations: 4 kB / 473.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001986/0.1686, allocations: 143.5 kB / 473.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.551e-05/0.1687, allocations: 81.02 kB / 473.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.1687, allocations: 11.92 kB / 473.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.1688, allocations: 8 kB / 473.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.1689, allocations: 12.02 kB / 473.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.1689, allocations: 0 / 473.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.972e-05/0.169, allocations: 87.27 kB / 473.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.169, allocations: 3.938 kB / 473.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003063/0.1693, allocations: 8 kB / 473.9 MB, free: 9.383 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004807/0.1698, allocations: 0.6773 MB / 474.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000165/0.17, allocations: 31.92 kB / 474.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.17, allocations: 0 / 474.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.393e-05/0.17, allocations: 15.98 kB / 474.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.1702, allocations: 0 / 474.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005264/0.1708, allocations: 160.3 kB / 474.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.1711, allocations: 0.6845 MB / 475.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.668e-05/0.1711, allocations: 0 / 475.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.206e-05/0.1712, allocations: 19.42 kB / 475.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1712, allocations: 0 / 475.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01711/0.1883, allocations: 1.478 MB / 477 MB, free: 6.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/7.801, allocations: 3.375 kB / 477 MB, free: 6.27 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches