Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.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: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.269/1.269, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7139/0.7139, allocations: 132.2 MB / 422.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 65.78 kB / 0.5019 GB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3319, allocations: 80.2 MB / 0.5802 GB, free: 4.582 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002853/0.3348, allocations: 2.031 MB / 0.5822 GB, free: 3.164 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006726/0.3355, allocations: 0.5333 MB / 0.5827 GB, free: 2.781 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.734e-05/0.3356, allocations: 1.469 kB / 0.5827 GB, free: 2.781 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.3357, allocations: 24.23 kB / 0.5827 GB, free: 2.766 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.179e-05/0.3358, allocations: 40.61 kB / 0.5828 GB, free: 2.734 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002074/0.336, allocations: 61.58 kB / 0.5828 GB, free: 2.699 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001804/0.3362, allocations: 175.9 kB / 0.583 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.3363, allocations: 75.91 kB / 0.5831 GB, free: 2.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.3365, allocations: 73.8 kB / 0.5831 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.3366, allocations: 80.44 kB / 0.5832 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.071e-05/0.3366, allocations: 14.91 kB / 0.5832 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.121e-05/0.3367, allocations: 14.31 kB / 0.5832 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.82e-05/0.3367, allocations: 43.67 kB / 0.5833 GB, free: 2.465 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.897e-05/0.3368, allocations: 78.89 kB / 0.5833 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001998/0.337, allocations: 169.8 kB / 0.5835 GB, free: 2.348 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.337, allocations: 0 / 0.5835 GB, free: 2.348 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.337, allocations: 0 / 0.5835 GB, free: 2.348 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.337, allocations: 1.188 kB / 0.5835 GB, free: 2.348 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.0006527/0.3377, allocations: 494 kB / 0.584 GB, free: 1.918 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.3377, allocations: 9.25 kB / 0.584 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.643e-05/0.3378, allocations: 47 kB / 0.584 GB, free: 1.871 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.3378, allocations: 22.59 kB / 0.5841 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.338, allocations: 210.1 kB / 0.5843 GB, free: 1.637 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.864e-05/0.338, allocations: 46.03 kB / 0.5843 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.3381, allocations: 14.28 kB / 0.5843 GB, free: 1.59 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.3385, allocations: 160.4 kB / 0.5845 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3385, allocations: 0 / 0.5845 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.3385, allocations: 6.219 kB / 0.5845 GB, free: 1.512 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3385, allocations: 3.219 kB / 0.5845 GB, free: 1.512 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004847/0.339, allocations: 143.1 kB / 0.5846 GB, free: 1.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006913/0.3397, allocations: 0.5296 MB / 0.5851 GB, free: 1.051 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004129/0.3401, allocations: 143 kB / 0.5853 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.3404, allocations: 79.03 kB / 0.5853 GB, free: 0.957 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.3404, allocations: 5.891 kB / 0.5853 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.278e-05/0.3404, allocations: 32.31 kB / 0.5854 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.3404, allocations: 0 / 0.5854 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006926/0.3411, allocations: 221.5 kB / 0.5856 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.066e-05/0.3411, allocations: 53.94 kB / 0.5856 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3413, allocations: 154.4 kB / 0.5858 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.3413, allocations: 31.2 kB / 0.5858 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.089e-05/0.3413, allocations: 133.8 kB / 0.5859 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.135e-05/0.3414, allocations: 45 kB / 0.586 GB, free: 472 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.822e-05/0.3414, allocations: 28.62 kB / 0.586 GB, free: 448 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.26e-05/0.3415, allocations: 326.1 kB / 0.5863 GB, free: 120 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/0.3417, allocations: 57.97 kB / 0.5864 GB, free: 108 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.3419, allocations: 95.19 kB / 0.5865 GB, free: 60 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003915/0.3423, allocations: 139.6 kB / 0.5866 GB, free: 0 / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3424, allocations: 5.109 kB / 0.5866 GB, free: 15.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004902/0.3429, allocations: 192 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3429, allocations: 5.812 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.3429, allocations: 0.5 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3429, allocations: 1.656 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.3431, allocations: 41.19 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.3431, allocations: 5.656 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.3433, allocations: 21.66 kB / 0.5869 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.3433, allocations: 8.531 kB / 0.5869 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 9.799e-05/0.3434, allocations: 125.5 kB / 0.587 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.3434, allocations: 15.38 kB / 0.587 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.296e-05/0.3435, allocations: 16.89 kB / 0.587 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3435, allocations: 5.344 kB / 0.587 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3435, allocations: 4.562 kB / 0.587 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3435, allocations: 1.359 kB / 0.587 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.3438, allocations: 242.8 kB / 0.5873 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.3438, allocations: 0.6094 kB / 0.5873 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.344, allocations: 37.09 kB / 0.5873 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.344, allocations: 0.6562 kB / 0.5873 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.344, allocations: 1.578 kB / 0.5873 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.344, allocations: 1.406 kB / 0.5873 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.344, allocations: 0 / 0.5873 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000742/0.3448, allocations: 346.1 kB / 0.5876 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.828e-05/0.3448, allocations: 85.03 kB / 0.5877 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.3449, allocations: 6.328 kB / 0.5877 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.345, allocations: 16.64 kB / 0.5877 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.395e-05/0.3451, allocations: 14.84 kB / 0.5877 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.3451, allocations: 3.297 kB / 0.5878 GB, free: 15.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.408e-05/0.3452, allocations: 118.1 kB / 0.5879 GB, free: 15.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3452, allocations: 0 / 0.5879 GB, free: 15.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002711/0.3455, allocations: 40.06 kB / 0.5879 GB, free: 15.11 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.0009946/0.3465, allocations: 0.8768 MB / 0.5888 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004934/0.347, allocations: 147.9 kB / 0.5889 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.347, allocations: 0.5312 kB / 0.5889 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.3472, allocations: 78.2 kB / 0.589 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.3476, allocations: 23.12 kB / 0.589 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/0.3502, allocations: 1.965 MB / 0.5909 GB, free: 12.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.3505, allocations: 0.7145 MB / 0.5916 GB, free: 12.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.769e-05/0.3505, allocations: 12.58 kB / 0.5916 GB, free: 12.13 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.095e-05/0.3506, allocations: 46.14 kB / 0.5917 GB, free: 12.09 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3506, allocations: 4.469 kB / 0.5917 GB, free: 12.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.795/2.146, allocations: 3.234 MB / 0.5948 GB, free: 11.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/13.68, allocations: 6.484 kB / 0.5948 GB, free: 11.37 MB / 446.1 MB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)