Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002285/0.002285, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.576/1.576, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2716/0.2716, allocations: 46.92 MB / 357.1 MB, free: 10.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 67.89 kB / 0.4909 GB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1453, allocations: 65.98 MB / 0.5554 GB, free: 5.895 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003064/0.1484, allocations: 1.457 MB / 0.5568 GB, free: 4.426 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1494, allocations: 488.5 kB / 0.5573 GB, free: 3.945 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.893e-05/0.1495, allocations: 7.938 kB / 0.5573 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.041e-05/0.1496, allocations: 0 / 0.5573 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.602e-05/0.1496, allocations: 7.875 kB / 0.5573 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.1499, allocations: 27.95 kB / 0.5573 GB, free: 3.902 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001436/0.1501, allocations: 43.8 kB / 0.5573 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.1502, allocations: 7.984 kB / 0.5573 GB, free: 3.852 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.1504, allocations: 23.91 kB / 0.5574 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.833e-05/0.1504, allocations: 15.92 kB / 0.5574 GB, free: 3.812 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.1505, allocations: 11.94 kB / 0.5574 GB, free: 3.801 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.571e-05/0.1505, allocations: 4 kB / 0.5574 GB, free: 3.797 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.377e-05/0.1505, allocations: 8 kB / 0.5574 GB, free: 3.789 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.839e-05/0.1505, allocations: 15.92 kB / 0.5574 GB, free: 3.773 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.1507, allocations: 35.83 kB / 0.5575 GB, free: 3.738 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1507, allocations: 3.938 kB / 0.5575 GB, free: 3.734 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.539e-06/0.1507, allocations: 3.984 kB / 0.5575 GB, free: 3.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.1507, allocations: 0 / 0.5575 GB, free: 3.73 MB / 414.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.0005581/0.1512, allocations: 355.3 kB / 0.5578 GB, free: 3.336 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1513, allocations: 12.03 kB / 0.5578 GB, free: 3.324 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.378e-05/0.1513, allocations: 38.75 kB / 0.5578 GB, free: 3.277 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.1515, allocations: 12.92 kB / 0.5579 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.1518, allocations: 176.3 kB / 0.558 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.1518, allocations: 384 / 0.558 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.1518, allocations: 384 / 0.558 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.152, allocations: 67.52 kB / 0.5581 GB, free: 2.977 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.152, allocations: 4 kB / 0.5581 GB, free: 2.973 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.152, allocations: 3.938 kB / 0.5581 GB, free: 2.969 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.152, allocations: 0 / 0.5581 GB, free: 2.969 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.385e-05/0.1521, allocations: 19.98 kB / 0.5581 GB, free: 2.949 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000432/0.1525, allocations: 264.9 kB / 0.5584 GB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.695e-05/0.1526, allocations: 30.56 kB / 0.5584 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.156e-05/0.1527, allocations: 16.91 kB / 0.5584 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.1527, allocations: 0 / 0.5584 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.1527, allocations: 38.5 kB / 0.5585 GB, free: 2.535 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.1527, allocations: 0 / 0.5585 GB, free: 2.535 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002696/0.153, allocations: 61.67 kB / 0.5585 GB, free: 2.469 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.1531, allocations: 77.11 kB / 0.5586 GB, free: 2.375 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.773e-05/0.1532, allocations: 117.9 kB / 0.5587 GB, free: 2.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.1532, allocations: 29.7 kB / 0.5587 GB, free: 2.215 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.1532, allocations: 92.06 kB / 0.5588 GB, free: 2.121 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.1533, allocations: 7.953 kB / 0.5588 GB, free: 2.113 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-05/0.1533, allocations: 17.7 kB / 0.5588 GB, free: 2.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1534, allocations: 318.8 kB / 0.5591 GB, free: 1.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.333e-05/0.1535, allocations: 15.98 kB / 0.5592 GB, free: 1.754 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.368e-05/0.1536, allocations: 25.66 kB / 0.5592 GB, free: 1.723 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.466e-05/0.1536, allocations: 28.84 kB / 0.5592 GB, free: 1.691 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1536, allocations: 0 / 0.5592 GB, free: 1.691 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001316/0.1538, allocations: 57.67 kB / 0.5593 GB, free: 1.629 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.1538, allocations: 4 kB / 0.5593 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.1538, allocations: 0 / 0.5593 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1538, allocations: 0 / 0.5593 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.96e-05/0.1539, allocations: 11.92 kB / 0.5593 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1539, allocations: 4.031 kB / 0.5593 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.245e-05/0.1539, allocations: 11.95 kB / 0.5593 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.1539, allocations: 3.938 kB / 0.5593 GB, free: 1.594 MB / 414.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 9.54e-05/0.154, allocations: 124 kB / 0.5594 GB, free: 1.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.423e-05/0.1541, allocations: 0 / 0.5594 GB, free: 1.465 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.226e-05/0.1541, allocations: 3.672 kB / 0.5594 GB, free: 1.461 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.1541, allocations: 7.984 kB / 0.5594 GB, free: 1.453 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.1541, allocations: 0 / 0.5594 GB, free: 1.453 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1541, allocations: 0 / 0.5594 GB, free: 1.453 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.1543, allocations: 169.6 kB / 0.5596 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1543, allocations: 0 / 0.5596 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.816e-05/0.1543, allocations: 4 kB / 0.5596 GB, free: 1.234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1543, allocations: 3.984 kB / 0.5596 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1543, allocations: 0 / 0.5596 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.1543, allocations: 4 kB / 0.5596 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1543, allocations: 4 kB / 0.5596 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001861/0.1545, allocations: 155.4 kB / 0.5598 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.1546, allocations: 81.09 kB / 0.5598 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.1546, allocations: 7.938 kB / 0.5598 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.22e-05/0.1547, allocations: 4 kB / 0.5598 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.1547, allocations: 7.984 kB / 0.5599 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.1547, allocations: 0 / 0.5599 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.878e-05/0.1548, allocations: 95.58 kB / 0.5599 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1548, allocations: 0 / 0.5599 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002139/0.155, allocations: 4 kB / 0.5599 GB, free: 0.8398 MB / 414.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.0005141/0.1555, allocations: 0.6851 MB / 0.5606 GB, free: 132 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001594/0.1557, allocations: 31.92 kB / 0.5606 GB, free: 100 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1557, allocations: 0 / 0.5606 GB, free: 100 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.986e-05/0.1557, allocations: 16.02 kB / 0.5607 GB, free: 84 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/0.156, allocations: 4 kB / 0.5607 GB, free: 80 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.1573, allocations: 1.262 MB / 0.5619 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.1576, allocations: 0.6807 MB / 0.5626 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.468e-05/0.1576, allocations: 3.984 kB / 0.5626 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.1577, allocations: 15.44 kB / 0.5626 GB, free: 14 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1577, allocations: 4 kB / 0.5626 GB, free: 14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.1802, allocations: 1.534 MB / 0.5641 GB, free: 12.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/8.06, allocations: 4.062 kB / 0.5641 GB, free: 12.53 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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.000598325 ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable hysteresis.y in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.426253085999633]