Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001283/0.001283, allocations: 116.9 kB / 18.49 MB, free: 4.559 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.001351/0.001351, allocations: 212.7 kB / 21.46 MB, free: 1.605 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.496/1.496, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2483/0.2483, allocations: 46.92 MB / 357.7 MB, free: 10.15 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002226, allocations: 75.89 kB / 0.4916 GB, free: 7.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1399, allocations: 66.05 MB / 0.5561 GB, free: 5.504 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002731/0.1426, allocations: 1.468 MB / 0.5576 GB, free: 4.02 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008744/0.1435, allocations: 484.4 kB / 0.558 GB, free: 3.543 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.769e-05/0.1436, allocations: 7.938 kB / 0.558 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.425e-05/0.1436, allocations: 0 / 0.558 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.256e-05/0.1436, allocations: 7.922 kB / 0.5581 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.1439, allocations: 31.91 kB / 0.5581 GB, free: 3.496 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.144, allocations: 43.78 kB / 0.5581 GB, free: 3.453 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.122e-05/0.1441, allocations: 4 kB / 0.5581 GB, free: 3.449 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.1442, allocations: 19.97 kB / 0.5581 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.308e-05/0.1442, allocations: 23.86 kB / 0.5582 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.1442, allocations: 0 / 0.5582 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.918e-05/0.1443, allocations: 8 kB / 0.5582 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.337e-05/0.1443, allocations: 8 kB / 0.5582 GB, free: 3.391 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.938e-05/0.1443, allocations: 15.92 kB / 0.5582 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.1444, allocations: 39.83 kB / 0.5582 GB, free: 3.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1445, allocations: 0 / 0.5582 GB, free: 3.336 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1445, allocations: 3.938 kB / 0.5582 GB, free: 3.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1445, allocations: 3.938 kB / 0.5582 GB, free: 3.328 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.0004813/0.1449, allocations: 355.3 kB / 0.5586 GB, free: 2.934 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.145, allocations: 12.03 kB / 0.5586 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.19e-05/0.145, allocations: 4.188 kB / 0.5586 GB, free: 2.918 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.145, allocations: 30.75 kB / 0.5586 GB, free: 2.879 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.1452, allocations: 12.92 kB / 0.5586 GB, free: 2.867 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.1454, allocations: 172.3 kB / 0.5588 GB, free: 2.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.1454, allocations: 4.375 kB / 0.5588 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.1454, allocations: 4.375 kB / 0.5588 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.1456, allocations: 55.34 kB / 0.5589 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.1456, allocations: 7.938 kB / 0.5589 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.1456, allocations: 4 kB / 0.5589 GB, free: 2.574 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1456, allocations: 0 / 0.5589 GB, free: 2.574 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.994e-05/0.1457, allocations: 23.97 kB / 0.5589 GB, free: 2.551 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003689/0.1461, allocations: 260.9 kB / 0.5592 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.154e-05/0.1462, allocations: 30.56 kB / 0.5592 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.85e-05/0.1462, allocations: 16.92 kB / 0.5592 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.1462, allocations: 0 / 0.5592 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.1463, allocations: 42.48 kB / 0.5592 GB, free: 2.137 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.1463, allocations: 3.938 kB / 0.5592 GB, free: 2.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002429/0.1465, allocations: 53.69 kB / 0.5593 GB, free: 2.074 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.1466, allocations: 85.09 kB / 0.5594 GB, free: 1.973 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.654e-05/0.1466, allocations: 114 kB / 0.5595 GB, free: 1.852 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1467, allocations: 29.7 kB / 0.5595 GB, free: 1.816 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.1467, allocations: 88.08 kB / 0.5596 GB, free: 1.727 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.1467, allocations: 3.953 kB / 0.5596 GB, free: 1.723 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/0.1468, allocations: 17.72 kB / 0.5596 GB, free: 1.699 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1469, allocations: 322.8 kB / 0.5599 GB, free: 1.375 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.795e-05/0.147, allocations: 8 kB / 0.5599 GB, free: 1.367 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.933e-05/0.147, allocations: 37.64 kB / 0.56 GB, free: 1.324 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.197e-05/0.1471, allocations: 28.94 kB / 0.56 GB, free: 1.293 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1471, allocations: 0 / 0.56 GB, free: 1.293 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001345/0.1472, allocations: 57.66 kB / 0.56 GB, free: 1.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.1472, allocations: 8 kB / 0.5601 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1473, allocations: 3.938 kB / 0.5601 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1473, allocations: 0 / 0.5601 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.403e-05/0.1473, allocations: 4 kB / 0.5601 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1473, allocations: 4.031 kB / 0.5601 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.786e-05/0.1474, allocations: 15.88 kB / 0.5601 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.1474, allocations: 7.984 kB / 0.5601 GB, free: 1.188 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 8.268e-05/0.1475, allocations: 113.8 kB / 0.5602 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.1475, allocations: 7.984 kB / 0.5602 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.371e-05/0.1475, allocations: 7.531 kB / 0.5602 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1475, allocations: 0 / 0.5602 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1475, allocations: 0 / 0.5602 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1475, allocations: 4 kB / 0.5602 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.1477, allocations: 169.6 kB / 0.5604 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1477, allocations: 0 / 0.5604 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.945e-05/0.1478, allocations: 4 kB / 0.5604 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1478, allocations: 0 / 0.5604 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.1478, allocations: 0 / 0.5604 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1478, allocations: 4.359 kB / 0.5604 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1478, allocations: 0 / 0.5604 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001813/0.148, allocations: 159.4 kB / 0.5605 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.269e-05/0.148, allocations: 81.05 kB / 0.5606 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/0.148, allocations: 7.922 kB / 0.5606 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.21e-05/0.1481, allocations: 4 kB / 0.5606 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.442e-05/0.1481, allocations: 7.984 kB / 0.5606 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.1481, allocations: 4 kB / 0.5606 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.217e-05/0.1482, allocations: 87.27 kB / 0.5607 GB, free: 456 kB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1482, allocations: 0 / 0.5607 GB, free: 456 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.1484, allocations: 16.03 kB / 0.5607 GB, free: 440 kB / 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.0004823/0.1489, allocations: 0.6772 MB / 0.5614 GB, free: 15.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001605/0.1491, allocations: 27.92 kB / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1491, allocations: 4.031 kB / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.183e-05/0.1491, allocations: 15.98 kB / 0.5614 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.1493, allocations: 4 kB / 0.5614 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.1506, allocations: 1.258 MB / 0.5627 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.1509, allocations: 0.6807 MB / 0.5633 GB, free: 13.63 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.873e-05/0.1509, allocations: 0 / 0.5633 GB, free: 13.63 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.151, allocations: 19.42 kB / 0.5634 GB, free: 13.61 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.151, allocations: 4 kB / 0.5634 GB, free: 13.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.1682, allocations: 1.578 MB / 0.5649 GB, free: 12.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/7.983, allocations: 1.688 kB / 0.5649 GB, free: 12.1 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.044410720991436] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 8.102271266980097 8.116760097 7.969654399 Calling exit ...