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.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.001843/0.001843, allocations: 121 kB / 18.5 MB, free: 4.562 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.002186/0.002186, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.581/1.581, allocations: 230.6 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2343/0.2343, allocations: 44.9 MB / 355.8 MB, free: 12.41 MB / 286.1 MB " [Timeout remaining time 180] 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.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_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 63.91 kB / 0.4885 GB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1534, allocations: 65.43 MB / 0.5524 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002781/0.1562, allocations: 1.461 MB / 0.5539 GB, free: 8.691 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009163/0.1571, allocations: 0.4888 MB / 0.5543 GB, free: 8.199 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.432e-05/0.1572, allocations: 0 / 0.5543 GB, free: 8.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.053e-05/0.1572, allocations: 3.938 kB / 0.5543 GB, free: 8.195 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.264e-05/0.1573, allocations: 3.938 kB / 0.5543 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.1575, allocations: 31.91 kB / 0.5544 GB, free: 8.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.1576, allocations: 39.84 kB / 0.5544 GB, free: 8.121 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.988e-05/0.1577, allocations: 11.94 kB / 0.5544 GB, free: 8.109 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.1578, allocations: 19.98 kB / 0.5544 GB, free: 8.09 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.812e-05/0.1579, allocations: 23.91 kB / 0.5545 GB, free: 8.066 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.1579, allocations: 0 / 0.5545 GB, free: 8.066 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.423e-05/0.158, allocations: 8 kB / 0.5545 GB, free: 8.059 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.633e-05/0.158, allocations: 11.92 kB / 0.5545 GB, free: 8.047 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.746e-05/0.158, allocations: 11.94 kB / 0.5545 GB, free: 8.035 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.1581, allocations: 40.09 kB / 0.5545 GB, free: 7.996 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1581, allocations: 0 / 0.5545 GB, free: 7.996 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1581, allocations: 4 kB / 0.5545 GB, free: 7.992 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1582, allocations: 0 / 0.5545 GB, free: 7.992 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.00052/0.1587, allocations: 351.3 kB / 0.5549 GB, free: 7.602 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1587, allocations: 8.031 kB / 0.5549 GB, free: 7.594 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.278e-05/0.1587, allocations: 4.188 kB / 0.5549 GB, free: 7.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.5e-05/0.1588, allocations: 34.69 kB / 0.5549 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.1589, allocations: 16.86 kB / 0.5549 GB, free: 7.531 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.1591, allocations: 180.3 kB / 0.5551 GB, free: 7.316 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1592, allocations: 4.312 kB / 0.5551 GB, free: 7.312 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.1592, allocations: 8.375 kB / 0.5551 GB, free: 7.305 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.1593, allocations: 59.33 kB / 0.5552 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.1593, allocations: 0 / 0.5552 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.1594, allocations: 0 / 0.5552 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1594, allocations: 0 / 0.5552 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.525e-05/0.1595, allocations: 23.92 kB / 0.5552 GB, free: 7.211 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004184/0.1599, allocations: 272.8 kB / 0.5555 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.088e-05/0.16, allocations: 26.58 kB / 0.5555 GB, free: 6.859 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.562e-05/0.16, allocations: 20.91 kB / 0.5555 GB, free: 6.836 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.16, allocations: 0 / 0.5555 GB, free: 6.836 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.1601, allocations: 30.56 kB / 0.5555 GB, free: 6.797 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.1601, allocations: 0 / 0.5555 GB, free: 6.797 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002581/0.1603, allocations: 69.61 kB / 0.5556 GB, free: 6.723 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.631e-05/0.1604, allocations: 81.11 kB / 0.5557 GB, free: 6.625 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.879e-05/0.1605, allocations: 105.8 kB / 0.5558 GB, free: 6.512 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.1605, allocations: 29.7 kB / 0.5558 GB, free: 6.477 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.335e-05/0.1606, allocations: 84.14 kB / 0.5559 GB, free: 6.391 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.1606, allocations: 7.938 kB / 0.5559 GB, free: 6.383 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.721e-05/0.1607, allocations: 17.72 kB / 0.5559 GB, free: 6.359 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1608, allocations: 318.9 kB / 0.5562 GB, free: 6.039 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.296e-05/0.1609, allocations: 15.98 kB / 0.5562 GB, free: 6.023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.577e-05/0.1609, allocations: 25.7 kB / 0.5562 GB, free: 5.992 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.594e-05/0.161, allocations: 28.78 kB / 0.5563 GB, free: 5.961 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.161, allocations: 0 / 0.5563 GB, free: 5.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001434/0.1611, allocations: 61.77 kB / 0.5563 GB, free: 5.895 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.1612, allocations: 8.406 kB / 0.5563 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.1612, allocations: 0 / 0.5563 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1612, allocations: 4 kB / 0.5563 GB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.914e-05/0.1612, allocations: 3.984 kB / 0.5564 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.1613, allocations: 7.938 kB / 0.5564 GB, free: 5.871 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.21e-05/0.1613, allocations: 11.94 kB / 0.5564 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.1613, allocations: 0 / 0.5564 GB, free: 5.859 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.41e-05/0.1614, allocations: 116 kB / 0.5565 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.1614, allocations: 8 kB / 0.5565 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.68e-05/0.1615, allocations: 11.47 kB / 0.5565 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1615, allocations: 0 / 0.5565 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1615, allocations: 3.938 kB / 0.5565 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1615, allocations: 0 / 0.5565 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.1617, allocations: 169.6 kB / 0.5567 GB, free: 5.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1617, allocations: 4 kB / 0.5567 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-05/0.1617, allocations: 3.984 kB / 0.5567 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1617, allocations: 4 kB / 0.5567 GB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.1617, allocations: 0 / 0.5567 GB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1617, allocations: 0 / 0.5567 GB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1617, allocations: 4 kB / 0.5567 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.1619, allocations: 151.4 kB / 0.5568 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.814e-05/0.162, allocations: 85.05 kB / 0.5569 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.801e-05/0.162, allocations: 0 / 0.5569 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.674e-05/0.1621, allocations: 11.98 kB / 0.5569 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.1621, allocations: 4 kB / 0.5569 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.1621, allocations: 8.016 kB / 0.5569 GB, free: 5.195 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.447e-05/0.1622, allocations: 91.22 kB / 0.557 GB, free: 5.105 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1622, allocations: 0 / 0.557 GB, free: 5.105 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002125/0.1624, allocations: 8 kB / 0.557 GB, free: 5.098 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.0005038/0.1629, allocations: 0.6812 MB / 0.5577 GB, free: 4.391 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001556/0.163, allocations: 23.98 kB / 0.5577 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.163, allocations: 0 / 0.5577 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.183e-05/0.1631, allocations: 19.92 kB / 0.5577 GB, free: 4.348 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.1633, allocations: 6.031 kB / 0.5577 GB, free: 4.344 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.1647, allocations: 1.27 MB / 0.559 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.1651, allocations: 0.6846 MB / 0.5596 GB, free: 2.281 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.165e-05/0.1651, allocations: 0 / 0.5596 GB, free: 2.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.593e-05/0.1652, allocations: 15.44 kB / 0.5597 GB, free: 2.266 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1652, allocations: 0 / 0.5597 GB, free: 2.266 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.1818, allocations: 1.575 MB / 0.5612 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.293/8.475, allocations: 0 / 0.5612 GB, free: 0.7734 MB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.643668608972803] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 8.603053065016866 8.629901326 8.466924068 Calling exit ...