Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00147/0.001471, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 192.5 kB / 16.25 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7453/0.7453, allocations: 132.2 MB / 422.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 63.58 kB / 0.5013 GB, free: 4.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4298/0.431, allocations: 80.2 MB / 0.5796 GB, free: 4.539 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003211/0.4342, allocations: 2.086 MB / 0.5816 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008702/0.4351, allocations: 0.5193 MB / 0.5821 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.452e-05/0.4352, allocations: 5.969 kB / 0.5821 GB, free: 2.711 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.4354, allocations: 14.73 kB / 0.5822 GB, free: 2.703 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.4355, allocations: 42.33 kB / 0.5822 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.4357, allocations: 46.2 kB / 0.5822 GB, free: 2.645 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002335/0.436, allocations: 177.4 kB / 0.5824 GB, free: 2.562 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.4362, allocations: 70.91 kB / 0.5825 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.4363, allocations: 77.02 kB / 0.5826 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.4365, allocations: 84.38 kB / 0.5826 GB, free: 2.438 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/0.4365, allocations: 14.88 kB / 0.5826 GB, free: 2.438 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.115e-05/0.4366, allocations: 14.88 kB / 0.5827 GB, free: 2.438 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.549e-05/0.4366, allocations: 35.2 kB / 0.5827 GB, free: 2.414 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.215e-05/0.4367, allocations: 87.53 kB / 0.5828 GB, free: 2.359 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.437, allocations: 169.4 kB / 0.5829 GB, free: 2.289 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.437, allocations: 0 / 0.5829 GB, free: 2.289 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.437, allocations: 0 / 0.5829 GB, free: 2.289 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.984e-06/0.437, allocations: 0 / 0.5829 GB, free: 2.289 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007996/0.4378, allocations: 495.5 kB / 0.5834 GB, free: 1.859 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.4378, allocations: 9.219 kB / 0.5834 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.003e-05/0.4379, allocations: 22.03 kB / 0.5834 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.4381, allocations: 214.3 kB / 0.5836 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.158e-05/0.4382, allocations: 41.73 kB / 0.5837 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.4382, allocations: 13.92 kB / 0.5837 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004273/0.4387, allocations: 161.9 kB / 0.5839 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.4387, allocations: 0 / 0.5839 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.4387, allocations: 5.375 kB / 0.5839 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.4387, allocations: 3.375 kB / 0.5839 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005315/0.4393, allocations: 147.3 kB / 0.584 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.4402, allocations: 0.5238 MB / 0.5845 GB, free: 1.039 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004892/0.4407, allocations: 136 kB / 0.5846 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.441, allocations: 87.11 kB / 0.5847 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.441, allocations: 1.984 kB / 0.5847 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.656e-05/0.441, allocations: 31.94 kB / 0.5848 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.441, allocations: 0 / 0.5848 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007361/0.4418, allocations: 217.6 kB / 0.585 GB, free: 0.832 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.4418, allocations: 57.72 kB / 0.585 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.4419, allocations: 155.2 kB / 0.5852 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.442, allocations: 31.75 kB / 0.5852 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.861e-05/0.442, allocations: 125 kB / 0.5853 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.4421, allocations: 41.53 kB / 0.5854 GB, free: 476 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.689e-05/0.4421, allocations: 35.97 kB / 0.5854 GB, free: 444 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.862e-05/0.4422, allocations: 323.2 kB / 0.5857 GB, free: 120 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.4424, allocations: 65.92 kB / 0.5858 GB, free: 100 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.4427, allocations: 79.39 kB / 0.5858 GB, free: 64 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004141/0.4431, allocations: 144.5 kB / 0.586 GB, free: 0 / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-05/0.4431, allocations: 0.7656 kB / 0.586 GB, free: 16 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005165/0.4436, allocations: 188.4 kB / 0.5862 GB, free: 15.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.4437, allocations: 8.109 kB / 0.5862 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.4437, allocations: 1.219 kB / 0.5862 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.4437, allocations: 1.156 kB / 0.5862 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.4439, allocations: 40.94 kB / 0.5862 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.4439, allocations: 1.531 kB / 0.5862 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.4441, allocations: 32.39 kB / 0.5862 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.4441, allocations: 7.5 kB / 0.5862 GB, free: 15.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (con.y_boolean,$PRE.con.y_boolean) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.000135/0.4443, allocations: 138.7 kB / 0.5864 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.973e-05/0.4443, allocations: 13.41 kB / 0.5864 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.247e-05/0.4444, allocations: 18.39 kB / 0.5864 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.4444, allocations: 1.375 kB / 0.5864 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.4444, allocations: 4.594 kB / 0.5864 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4444, allocations: 4.75 kB / 0.5864 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003069/0.4447, allocations: 246.7 kB / 0.5867 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.4447, allocations: 1.312 kB / 0.5867 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/0.4449, allocations: 35.67 kB / 0.5867 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.445, allocations: 1.344 kB / 0.5867 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.445, allocations: 1.766 kB / 0.5867 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.445, allocations: 1.25 kB / 0.5867 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.445, allocations: 0.75 kB / 0.5867 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007948/0.4458, allocations: 345.3 kB / 0.587 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.984e-05/0.4458, allocations: 85.95 kB / 0.5871 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/0.4459, allocations: 4 kB / 0.5871 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.4461, allocations: 22.28 kB / 0.5871 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.4461, allocations: 15.81 kB / 0.5871 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-06/0.4461, allocations: 2.062 kB / 0.5872 GB, free: 15.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.681e-05/0.4462, allocations: 118.7 kB / 0.5873 GB, free: 15.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4462, allocations: 0 / 0.5873 GB, free: 15.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002828/0.4465, allocations: 35.81 kB / 0.5873 GB, free: 15.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cap.T) * Number of discrete variables: 1 (con.y_boolean) * Number of discrete states: 1 (con.y_boolean) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0001249/0.4467, allocations: 103.5 kB / 0.5874 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005618/0.4472, allocations: 159.6 kB / 0.5875 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4472, allocations: 0 / 0.5875 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000238/0.4475, allocations: 70.41 kB / 0.5876 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.4479, allocations: 25.83 kB / 0.5876 GB, free: 14.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008848/0.4488, allocations: 446.1 kB / 0.5881 GB, free: 14.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.4491, allocations: 0.7144 MB / 0.5888 GB, free: 13.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.605e-05/0.4492, allocations: 13.06 kB / 0.5888 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.471e-05/0.4492, allocations: 18.86 kB / 0.5888 GB, free: 13.9 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4492, allocations: 0 / 0.5888 GB, free: 13.9 MB / 446.1 MB Notification: Performance of Templates: time 0.00469/0.4539, allocations: 1.425 MB / 0.5902 GB, free: 13.79 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.makefile (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & ./IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)