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.001381/0.001381, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001441/0.001441, allocations: 212 kB / 24.54 MB, free: 4.016 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.44/1.44, allocations: 230.5 MB / 258.2 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] 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.2294/0.2294, allocations: 46.94 MB / 361.6 MB, free: 4.242 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.002333/0.002333, allocations: 79.88 kB / 0.497 GB, free: 7.824 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3372, allocations: 66.08 MB / 0.5615 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002751/0.34, allocations: 1.472 MB / 0.5629 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009207/0.3409, allocations: 494.7 kB / 0.5634 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.803e-05/0.341, allocations: 0 / 0.5634 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.397e-05/0.341, allocations: 3.938 kB / 0.5634 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.035e-05/0.3411, allocations: 7.922 kB / 0.5634 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.3413, allocations: 39.91 kB / 0.5634 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.3414, allocations: 35.8 kB / 0.5635 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.3415, allocations: 7.984 kB / 0.5635 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.3416, allocations: 20 kB / 0.5635 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.889e-05/0.3417, allocations: 19.91 kB / 0.5635 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.3417, allocations: 4 kB / 0.5635 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.238e-05/0.3418, allocations: 4 kB / 0.5635 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.3418, allocations: 11.92 kB / 0.5635 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.884e-05/0.3418, allocations: 11.94 kB / 0.5636 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.3419, allocations: 45.78 kB / 0.5636 GB, free: 2.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3419, allocations: 0 / 0.5636 GB, free: 2.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3419, allocations: 4 kB / 0.5636 GB, free: 2.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.342, allocations: 0 / 0.5636 GB, free: 2.172 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.0004618/0.3424, allocations: 270.2 kB / 0.5639 GB, free: 1.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3425, allocations: 12.03 kB / 0.5639 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.219e-05/0.3425, allocations: 42.62 kB / 0.5639 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.3427, allocations: 12.92 kB / 0.5639 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.3429, allocations: 118.5 kB / 0.564 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.3429, allocations: 8.375 kB / 0.5641 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.3429, allocations: 384 / 0.5641 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.3431, allocations: 63.52 kB / 0.5641 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.3431, allocations: 4 kB / 0.5641 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3431, allocations: 0 / 0.5641 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.3431, allocations: 0 / 0.5641 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.211e-05/0.3432, allocations: 23.92 kB / 0.5641 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003962/0.3436, allocations: 239.9 kB / 0.5644 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.421e-05/0.3437, allocations: 30.62 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.777e-05/0.3438, allocations: 16.84 kB / 0.5644 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.3438, allocations: 0 / 0.5644 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.3438, allocations: 34.5 kB / 0.5644 GB, free: 1.176 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 6.91e-07/0.3438, allocations: 4 kB / 0.5644 GB, free: 1.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002469/0.3441, allocations: 69.61 kB / 0.5645 GB, free: 1.098 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.3441, allocations: 77.11 kB / 0.5646 GB, free: 1.004 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.616e-05/0.3442, allocations: 113.8 kB / 0.5647 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.3442, allocations: 25.7 kB / 0.5647 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.91e-05/0.3443, allocations: 84.14 kB / 0.5648 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.3443, allocations: 7.953 kB / 0.5648 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.981e-05/0.3443, allocations: 21.83 kB / 0.5648 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3445, allocations: 318.8 kB / 0.5651 GB, free: 420 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.195e-05/0.3445, allocations: 15.98 kB / 0.5651 GB, free: 404 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.074e-05/0.3446, allocations: 21.72 kB / 0.5652 GB, free: 376 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.837e-05/0.3447, allocations: 28.78 kB / 0.5652 GB, free: 344 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3447, allocations: 0 / 0.5652 GB, free: 344 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001206/0.3448, allocations: 53.7 kB / 0.5652 GB, free: 284 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.3448, allocations: 12 kB / 0.5653 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3448, allocations: 0 / 0.5653 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3448, allocations: 4 kB / 0.5653 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.807e-05/0.3449, allocations: 7.984 kB / 0.5653 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3449, allocations: 0 / 0.5653 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.301e-05/0.3449, allocations: 7.953 kB / 0.5653 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.3449, allocations: 7.938 kB / 0.5653 GB, free: 244 kB / 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.975e-05/0.345, allocations: 117.8 kB / 0.5654 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.643e-05/0.3451, allocations: 8 kB / 0.5654 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.3451, allocations: 11.56 kB / 0.5654 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3451, allocations: 0 / 0.5654 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3451, allocations: 144 / 0.5654 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3451, allocations: 7.984 kB / 0.5654 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.3453, allocations: 132.7 kB / 0.5656 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3453, allocations: 0 / 0.5656 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.705e-05/0.3453, allocations: 4 kB / 0.5656 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3453, allocations: 0 / 0.5656 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.3453, allocations: 4.359 kB / 0.5656 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.3453, allocations: 4 kB / 0.5656 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3453, allocations: 4 kB / 0.5656 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001743/0.3455, allocations: 151.4 kB / 0.5657 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-06/0.3455, allocations: 3.938 kB / 0.5657 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.3455, allocations: 7.984 kB / 0.5657 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.773e-05/0.3456, allocations: 4 kB / 0.5657 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.66e-05/0.3456, allocations: 12.02 kB / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.3457, allocations: 0 / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.692e-05/0.3457, allocations: 95.2 kB / 0.5658 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3457, allocations: 0 / 0.5658 GB, free: 15.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002128/0.3459, allocations: 8 kB / 0.5658 GB, free: 15.6 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.0004708/0.3464, allocations: 0.6811 MB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001494/0.3465, allocations: 31.92 kB / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.3465, allocations: 4 kB / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.502e-05/0.3466, allocations: 7.984 kB / 0.5665 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.3468, allocations: 10.34 kB / 0.5666 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.3481, allocations: 1.27 MB / 0.5678 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.3484, allocations: 0.6846 MB / 0.5685 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.286e-05/0.3485, allocations: 4 kB / 0.5685 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.182e-05/0.3485, allocations: 11.44 kB / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3485, allocations: 0 / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.3723, allocations: 1.545 MB / 0.57 GB, free: 11.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.022/8.395, allocations: 11.23 kB / 0.57 GB, free: 11.28 MB / 414.1 MB " [Timeout remaining time 652] (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: 11.307995840907097] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 8.463538032956421 8.479405213 8.134497198 Calling exit ...