Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001417, allocations: 105.8 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001574/0.001574, allocations: 218.4 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 230.2 MB / 256.1 MB, free: 8.766 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2032/0.2032, allocations: 46.88 MB / 359.3 MB, free: 5.09 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-beta.om/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.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002135, allocations: 79.86 kB / 0.494 GB, free: 9.156 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2685, allocations: 65.99 MB / 0.5584 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002578/0.2711, allocations: 1.473 MB / 0.5598 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008924/0.2719, allocations: 494.7 kB / 0.5603 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.204e-05/0.272, allocations: 0 / 0.5603 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.658e-05/0.272, allocations: 3.938 kB / 0.5603 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.818e-05/0.2721, allocations: 3.938 kB / 0.5603 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001983/0.2723, allocations: 31.89 kB / 0.5603 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.729e-05/0.2723, allocations: 39.86 kB / 0.5604 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.238e-05/0.2724, allocations: 8 kB / 0.5604 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.2725, allocations: 23.91 kB / 0.5604 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.572e-05/0.2726, allocations: 19.92 kB / 0.5604 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.069e-05/0.2726, allocations: 0 / 0.5604 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.325e-05/0.2726, allocations: 12 kB / 0.5604 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.368e-05/0.2726, allocations: 7.922 kB / 0.5605 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.635e-05/0.2727, allocations: 15.94 kB / 0.5605 GB, free: 3.094 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.936e-05/0.2728, allocations: 37.64 kB / 0.5605 GB, free: 3.059 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2728, allocations: 0 / 0.5605 GB, free: 3.059 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2728, allocations: 4 kB / 0.5605 GB, free: 3.055 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.2728, allocations: 4 kB / 0.5605 GB, free: 3.051 MB / 398.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.0004405/0.2732, allocations: 351.3 kB / 0.5608 GB, free: 2.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.483e-05/0.2733, allocations: 12.03 kB / 0.5609 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.729e-05/0.2733, allocations: 34.69 kB / 0.5609 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.2734, allocations: 12.92 kB / 0.5609 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/0.2736, allocations: 172.3 kB / 0.5611 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.2736, allocations: 4.375 kB / 0.5611 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.827e-06/0.2737, allocations: 4.375 kB / 0.5611 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.2738, allocations: 67.45 kB / 0.5611 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.2738, allocations: 0 / 0.5611 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.2738, allocations: 0 / 0.5611 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.2738, allocations: 0 / 0.5611 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.407e-05/0.2739, allocations: 19.98 kB / 0.5612 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003641/0.2743, allocations: 276.8 kB / 0.5614 GB, free: 1.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.773e-05/0.2744, allocations: 30.52 kB / 0.5615 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.657e-05/0.2744, allocations: 12.91 kB / 0.5615 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.2744, allocations: 4 kB / 0.5615 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.2745, allocations: 38.5 kB / 0.5615 GB, free: 1.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.2745, allocations: 0 / 0.5615 GB, free: 1.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002365/0.2747, allocations: 61.67 kB / 0.5616 GB, free: 1.789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/0.2748, allocations: 77.11 kB / 0.5616 GB, free: 1.695 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.514e-05/0.2748, allocations: 117.8 kB / 0.5618 GB, free: 1.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.2749, allocations: 25.7 kB / 0.5618 GB, free: 1.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.702e-05/0.2749, allocations: 92.12 kB / 0.5619 GB, free: 1.445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.2749, allocations: 7.938 kB / 0.5619 GB, free: 1.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/0.275, allocations: 17.72 kB / 0.5619 GB, free: 1.414 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.2751, allocations: 318.9 kB / 0.5622 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.186e-05/0.2752, allocations: 15.98 kB / 0.5622 GB, free: 1.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.078e-05/0.2752, allocations: 25.7 kB / 0.5622 GB, free: 1.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.663e-05/0.2753, allocations: 24.84 kB / 0.5623 GB, free: 1.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2753, allocations: 0 / 0.5623 GB, free: 1.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001215/0.2754, allocations: 57.77 kB / 0.5623 GB, free: 0.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.2754, allocations: 11.92 kB / 0.5623 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.2754, allocations: 4.031 kB / 0.5623 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.2754, allocations: 0 / 0.5623 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.778e-05/0.2755, allocations: 4 kB / 0.5623 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.2755, allocations: 0 / 0.5623 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.976e-05/0.2756, allocations: 19.94 kB / 0.5624 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.2756, allocations: 3.938 kB / 0.5624 GB, free: 0.9141 MB / 398.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 8.792e-05/0.2756, allocations: 117.8 kB / 0.5625 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.324e-05/0.2757, allocations: 0 / 0.5625 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.393e-05/0.2757, allocations: 15.53 kB / 0.5625 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.2757, allocations: 0 / 0.5625 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.2757, allocations: 0 / 0.5625 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.2757, allocations: 0 / 0.5625 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/0.2759, allocations: 161.6 kB / 0.5626 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.2759, allocations: 4 kB / 0.5626 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.627e-05/0.2759, allocations: 3.984 kB / 0.5626 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.2759, allocations: 0 / 0.5626 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.2759, allocations: 4.375 kB / 0.5626 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.2759, allocations: 0 / 0.5626 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2759, allocations: 0 / 0.5626 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.2761, allocations: 163.4 kB / 0.5628 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.042e-05/0.2761, allocations: 81.05 kB / 0.5629 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.2761, allocations: 4 kB / 0.5629 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.01e-05/0.2762, allocations: 7.984 kB / 0.5629 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.2763, allocations: 11.98 kB / 0.5629 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.2763, allocations: 0 / 0.5629 GB, free: 264 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.362e-05/0.2763, allocations: 87.31 kB / 0.563 GB, free: 176 kB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2763, allocations: 0 / 0.563 GB, free: 176 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002053/0.2765, allocations: 8 kB / 0.563 GB, free: 168 kB / 398.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.0004619/0.277, allocations: 0.685 MB / 0.5637 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.2771, allocations: 31.97 kB / 0.5637 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2771, allocations: 0 / 0.5637 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.754e-05/0.2772, allocations: 12 kB / 0.5637 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.2774, allocations: 6.344 kB / 0.5637 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.2786, allocations: 1.269 MB / 0.565 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.2789, allocations: 0.6807 MB / 0.5656 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.755e-05/0.2789, allocations: 4 kB / 0.5656 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.653e-05/0.2789, allocations: 11.44 kB / 0.5656 GB, free: 13.33 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2789, allocations: 0 / 0.5656 GB, free: 13.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02198/0.3009, allocations: 1.535 MB / 0.5671 GB, free: 11.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.967/7.267, allocations: 3.938 kB / 0.5671 GB, free: 11.86 MB / 414.1 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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-beta_om_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.82007784700545]