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/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_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",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.001521/0.001521, allocations: 172.5 kB / 7.647 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.8592/0.8592, allocations: 133.6 MB / 141.6 MB, free: 2.887 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.456/1.456, allocations: 221.5 MB / 395.4 MB, free: 10.77 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.0009922/0.0009925, allocations: 96.3 kB / 478.2 MB, free: 1.297 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.957e-05, allocations: 0 / 0.5535 GB, free: 8.938 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4577/0.4577, allocations: 82.3 MB / 0.6339 GB, free: 40.71 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.146/0.6039, allocations: 112.9 MB / 0.7442 GB, free: 9.738 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.6041, allocations: 71.97 kB / 0.7443 GB, free: 9.668 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.007982/0.6121, allocations: 2.841 MB / 0.747 GB, free: 6.809 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.583e-06/0.6122, allocations: 0 / 0.747 GB, free: 6.809 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.012e-05/0.6122, allocations: 8 kB / 0.747 GB, free: 6.801 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.0007484/0.6129, allocations: 470 kB / 0.7475 GB, free: 6.297 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.613, allocations: 8.031 kB / 0.7475 GB, free: 6.289 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.079e-05/0.6131, allocations: 23.72 kB / 0.7475 GB, free: 6.266 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.6133, allocations: 209.2 kB / 0.7477 GB, free: 6.023 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.00012/0.6135, allocations: 41.67 kB / 0.7478 GB, free: 5.977 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.6135, allocations: 12 kB / 0.7478 GB, free: 5.965 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002037/0.6137, allocations: 68 kB / 0.7478 GB, free: 5.898 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.6139, allocations: 109.6 kB / 0.7479 GB, free: 5.785 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.614, allocations: 0 / 0.7479 GB, free: 5.785 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.614, allocations: 0 / 0.7479 GB, free: 5.785 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.614, allocations: 4 kB / 0.7479 GB, free: 5.781 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009778/0.615, allocations: 0.5351 MB / 0.7485 GB, free: 5.195 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.6153, allocations: 90.75 kB / 0.7485 GB, free: 5.098 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.108e-05/0.6154, allocations: 44.86 kB / 0.7486 GB, free: 5.051 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.6154, allocations: 7.984 kB / 0.7486 GB, free: 5.043 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.6154, allocations: 42.72 kB / 0.7486 GB, free: 4.992 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=12): time 3.807e-06/0.6154, allocations: 0 / 0.7486 GB, free: 4.992 MB / 0.5261 GB Notification: Performance of matching and sorting (n=12): time 0.00025/0.6157, allocations: 97.44 kB / 0.7487 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.6157, allocations: 55.41 kB / 0.7488 GB, free: 4.824 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.6159, allocations: 127.4 kB / 0.7489 GB, free: 4.695 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.6159, allocations: 25.7 kB / 0.7489 GB, free: 4.664 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.513e-05/0.616, allocations: 128.1 kB / 0.7491 GB, free: 4.531 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.396e-05/0.616, allocations: 47.39 kB / 0.7491 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-06/0.616, allocations: 0 / 0.7491 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6162, allocations: 322.8 kB / 0.7494 GB, free: 4.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.269e-05/0.6162, allocations: 28 kB / 0.7494 GB, free: 4.133 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.473e-05/0.6163, allocations: 56.25 kB / 0.7495 GB, free: 4.07 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.033e-05/0.6164, allocations: 38.95 kB / 0.7495 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.6164, allocations: 0 / 0.7495 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002001/0.6166, allocations: 129.5 kB / 0.7496 GB, free: 3.902 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.6166, allocations: 4 kB / 0.7497 GB, free: 3.898 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.6167, allocations: 0 / 0.7497 GB, free: 3.898 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.6167, allocations: 4 kB / 0.7497 GB, free: 3.895 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/0.6169, allocations: 43.91 kB / 0.7497 GB, free: 3.852 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.6169, allocations: 7.938 kB / 0.7497 GB, free: 3.844 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.6171, allocations: 36.03 kB / 0.7497 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.6171, allocations: 4 kB / 0.7497 GB, free: 3.805 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 8.964e-05/0.6172, allocations: 116.8 kB / 0.7499 GB, free: 3.684 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001734/0.6174, allocations: 101.5 kB / 0.75 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.6174, allocations: 7.906 kB / 0.75 GB, free: 3.57 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.463e-05/0.6175, allocations: 20.62 kB / 0.75 GB, free: 3.555 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.6175, allocations: 0 / 0.75 GB, free: 3.555 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.6175, allocations: 4 kB / 0.75 GB, free: 3.551 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.6175, allocations: 3.984 kB / 0.75 GB, free: 3.547 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002298/0.6177, allocations: 210 kB / 0.7502 GB, free: 3.305 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.6178, allocations: 0 / 0.7502 GB, free: 3.305 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.618, allocations: 35.97 kB / 0.7502 GB, free: 3.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.618, allocations: 4 kB / 0.7502 GB, free: 3.266 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.618, allocations: 4 kB / 0.7502 GB, free: 3.262 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.618, allocations: 0 / 0.7502 GB, free: 3.262 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.618, allocations: 3.938 kB / 0.7502 GB, free: 3.258 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.6183, allocations: 247.3 kB / 0.7505 GB, free: 3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.6184, allocations: 88.95 kB / 0.7506 GB, free: 2.895 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.6184, allocations: 0 / 0.7506 GB, free: 2.895 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.6186, allocations: 28.03 kB / 0.7506 GB, free: 2.867 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.6187, allocations: 19.97 kB / 0.7506 GB, free: 2.848 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.6187, allocations: 0 / 0.7506 GB, free: 2.848 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 7.107e-05/0.6188, allocations: 109.7 kB / 0.7507 GB, free: 2.742 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6188, allocations: 0 / 0.7507 GB, free: 2.742 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.000267/0.6191, allocations: 35.84 kB / 0.7507 GB, free: 2.707 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.0005784/0.6197, allocations: 0.7826 MB / 0.7515 GB, free: 1.895 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001837/0.6199, allocations: 75.94 kB / 0.7516 GB, free: 1.82 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.6199, allocations: 4 kB / 0.7516 GB, free: 1.816 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 7.852e-05/0.62, allocations: 47.92 kB / 0.7516 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.6202, allocations: 20.12 kB / 0.7516 GB, free: 1.75 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007958/0.621, allocations: 307.7 kB / 0.7519 GB, free: 1.41 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.6213, allocations: 0.7236 MB / 0.7526 GB, free: 0.6602 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.244e-05/0.6214, allocations: 12.53 kB / 0.7527 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.027e-05/0.6215, allocations: 43.42 kB / 0.7527 GB, free: 0.6055 MB / 0.5261 GB Notification: Performance of SimCode: time 2.5e-07/0.6215, allocations: 4 kB / 0.7527 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02131/0.6428, allocations: 2.404 MB / 0.755 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.643, allocations: 142.1 kB / 0.7552 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/2.241, allocations: 0 / 0.7552 GB, free: 14.02 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)