Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 176.2 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8106/0.8106, allocations: 133.6 MB / 141.6 MB, free: 2.84 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 221.5 MB / 395.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009214/0.0009215, allocations: 108.8 kB / 478.2 MB, free: 1.328 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.869e-05/1.864e-05, allocations: 0 / 0.5535 GB, free: 8.984 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4809/0.4809, allocations: 82.31 MB / 0.6339 GB, free: 40.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.6369, allocations: 112.9 MB / 0.7442 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.6372, allocations: 75.95 kB / 0.7443 GB, free: 9.699 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008563/0.6458, allocations: 2.841 MB / 0.747 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6458, allocations: 0 / 0.747 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.6e-05/0.6458, allocations: 4 kB / 0.747 GB, free: 6.836 MB / 0.5261 GB 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.0008375/0.6467, allocations: 470 kB / 0.7475 GB, free: 6.332 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.676e-05/0.6468, allocations: 12.02 kB / 0.7475 GB, free: 6.32 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.486e-05/0.6469, allocations: 19.72 kB / 0.7475 GB, free: 6.301 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003538/0.6472, allocations: 213.1 kB / 0.7477 GB, free: 6.055 MB / 0.5261 GB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: con.y_boolean = false to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002119/0.6474, allocations: 41.69 kB / 0.7478 GB, free: 6.008 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.6475, allocations: 8 kB / 0.7478 GB, free: 6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002145/0.6477, allocations: 75.98 kB / 0.7478 GB, free: 5.926 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.648, allocations: 101.7 kB / 0.7479 GB, free: 5.82 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.648, allocations: 0 / 0.7479 GB, free: 5.82 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.648, allocations: 0 / 0.7479 GB, free: 5.82 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.6481, allocations: 4 kB / 0.7479 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.6492, allocations: 0.5352 MB / 0.7485 GB, free: 5.23 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003066/0.6495, allocations: 98.73 kB / 0.7486 GB, free: 5.125 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.6496, allocations: 44.86 kB / 0.7486 GB, free: 5.078 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.6496, allocations: 4 kB / 0.7486 GB, free: 5.074 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.6497, allocations: 38.72 kB / 0.7486 GB, free: 5.027 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.6497, allocations: 3.938 kB / 0.7486 GB, free: 5.023 MB / 0.5261 GB Notification: Performance of matching and sorting (n=12): time 0.0002791/0.65, allocations: 97.5 kB / 0.7487 GB, free: 4.922 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.65, allocations: 51.41 kB / 0.7488 GB, free: 4.859 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.6502, allocations: 131.4 kB / 0.7489 GB, free: 4.727 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.6502, allocations: 29.7 kB / 0.7489 GB, free: 4.691 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.76e-05/0.6503, allocations: 124.2 kB / 0.7491 GB, free: 4.562 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.225e-05/0.6503, allocations: 47.39 kB / 0.7491 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.406e-06/0.6504, allocations: 0 / 0.7491 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.6505, allocations: 322.8 kB / 0.7494 GB, free: 4.191 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.362e-05/0.6506, allocations: 31.98 kB / 0.7494 GB, free: 4.16 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.55e-05/0.6507, allocations: 52.27 kB / 0.7495 GB, free: 4.102 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.668e-05/0.6508, allocations: 31.94 kB / 0.7495 GB, free: 4.07 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.6508, allocations: 0 / 0.7495 GB, free: 4.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002177/0.651, allocations: 125.4 kB / 0.7496 GB, free: 3.941 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.651, allocations: 13.86 kB / 0.7496 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.6511, allocations: 0 / 0.7496 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.6511, allocations: 0 / 0.7496 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.6513, allocations: 51.84 kB / 0.7497 GB, free: 3.879 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.6513, allocations: 3.984 kB / 0.7497 GB, free: 3.875 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.6515, allocations: 32.03 kB / 0.7497 GB, free: 3.844 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.6515, allocations: 8 kB / 0.7497 GB, free: 3.836 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.con.y_boolean,con.y_boolean) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.6517, allocations: 108.9 kB / 0.7498 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002033/0.6519, allocations: 105.5 kB / 0.7499 GB, free: 3.613 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.6519, allocations: 11.91 kB / 0.75 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.652, allocations: 20.61 kB / 0.75 GB, free: 3.586 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.652, allocations: 4 kB / 0.75 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.652, allocations: 0 / 0.75 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.652, allocations: 0 / 0.75 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.6523, allocations: 210 kB / 0.7502 GB, free: 3.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.6523, allocations: 3.938 kB / 0.7502 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000215/0.6526, allocations: 39.97 kB / 0.7502 GB, free: 3.297 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.6526, allocations: 0 / 0.7502 GB, free: 3.297 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.6526, allocations: 4 kB / 0.7502 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.6526, allocations: 0 / 0.7502 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.6526, allocations: 7.922 kB / 0.7502 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004068/0.653, allocations: 250.5 kB / 0.7505 GB, free: 3.027 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 7.883e-05/0.6531, allocations: 92.94 kB / 0.7506 GB, free: 2.918 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.6532, allocations: 0 / 0.7506 GB, free: 2.918 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.6533, allocations: 28.05 kB / 0.7506 GB, free: 2.891 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.6534, allocations: 15.97 kB / 0.7506 GB, free: 2.875 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.6534, allocations: 8 kB / 0.7506 GB, free: 2.867 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 8.192e-05/0.6535, allocations: 105.7 kB / 0.7507 GB, free: 2.766 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6535, allocations: 0 / 0.7507 GB, free: 2.766 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002788/0.6538, allocations: 35.84 kB / 0.7507 GB, free: 2.73 MB / 0.5261 GB 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007317/0.6545, allocations: 0.7865 MB / 0.7515 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001929/0.6548, allocations: 75.94 kB / 0.7516 GB, free: 1.84 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.6548, allocations: 8 kB / 0.7516 GB, free: 1.832 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 8.037e-05/0.6549, allocations: 43.94 kB / 0.7516 GB, free: 1.789 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.6551, allocations: 18.06 kB / 0.7517 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008204/0.656, allocations: 303 kB / 0.7519 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.6563, allocations: 0.7275 MB / 0.7527 GB, free: 0.6836 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.225e-05/0.6564, allocations: 4.562 kB / 0.7527 GB, free: 0.6797 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.599e-05/0.6565, allocations: 39.42 kB / 0.7527 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of SimCode: time 2.5e-07/0.6565, allocations: 4 kB / 0.7527 GB, free: 0.6367 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.6789, allocations: 2.412 MB / 0.7551 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002232/0.6792, allocations: 149.1 kB / 0.7552 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/2.334, allocations: 4 kB / 0.7552 GB, free: 14.05 MB / 0.5417 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)