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/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/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: 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/Complex 4.0.0+maint.om/package.mo): time 0.009466/0.009466, allocations: 170.1 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8128/0.8128, allocations: 132.3 MB / 148.1 MB, free: 244 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.78/1.78, allocations: 223.2 MB / 403.2 MB, free: 6.773 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.0009575/0.0009574, allocations: 101.2 kB / 485.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000383/0.000383, allocations: 15.98 kB / 0.5641 GB, free: 2.133 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5316/0.532, allocations: 81.57 MB / 0.6437 GB, free: 39.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1687/0.7007, allocations: 113.4 MB / 0.7545 GB, free: 6.539 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/0.7011, allocations: 79.94 kB / 0.7546 GB, free: 6.461 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008258/0.7094, allocations: 2.871 MB / 0.7574 GB, free: 3.57 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.224e-06/0.7094, allocations: 0 / 0.7574 GB, free: 3.57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.394e-05/0.7095, allocations: 4 kB / 0.7574 GB, free: 3.566 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.0007895/0.7103, allocations: 482.7 kB / 0.7578 GB, free: 3.047 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.7103, allocations: 8.031 kB / 0.7578 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.998e-05/0.7104, allocations: 23.72 kB / 0.7579 GB, free: 3.016 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.7107, allocations: 216.7 kB / 0.7581 GB, free: 2.766 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.0001848/0.7109, allocations: 37.7 kB / 0.7581 GB, free: 2.723 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.673e-05/0.7109, allocations: 15.98 kB / 0.7581 GB, free: 2.707 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004215/0.7114, allocations: 165.6 kB / 0.7583 GB, free: 2.539 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.7114, allocations: 0 / 0.7583 GB, free: 2.539 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.7114, allocations: 4 kB / 0.7583 GB, free: 2.535 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.7114, allocations: 4 kB / 0.7583 GB, free: 2.531 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005224/0.7119, allocations: 159.9 kB / 0.7584 GB, free: 2.375 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.713, allocations: 0.5776 MB / 0.759 GB, free: 1.734 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004585/0.7135, allocations: 142.6 kB / 0.7591 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.7135, allocations: 4 kB / 0.7591 GB, free: 1.582 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.7136, allocations: 38.5 kB / 0.7592 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.7136, allocations: 0 / 0.7592 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of matching and sorting (n=12): time 0.0007968/0.7144, allocations: 253.5 kB / 0.7594 GB, free: 1.281 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.7144, allocations: 55.41 kB / 0.7595 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.7146, allocations: 139 kB / 0.7596 GB, free: 1.074 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.7146, allocations: 29.7 kB / 0.7596 GB, free: 1.039 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.108e-05/0.7147, allocations: 132.4 kB / 0.7598 GB, free: 0.9023 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.608e-05/0.7148, allocations: 39.45 kB / 0.7598 GB, free: 0.8633 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-06/0.7148, allocations: 3.938 kB / 0.7598 GB, free: 0.8594 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.715, allocations: 326.8 kB / 0.7601 GB, free: 0.5312 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.7152, allocations: 75.95 kB / 0.7602 GB, free: 468 kB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.7154, allocations: 102.3 kB / 0.7603 GB, free: 356 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.7157, allocations: 78.95 kB / 0.7604 GB, free: 280 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.7157, allocations: 0 / 0.7604 GB, free: 280 kB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005202/0.7162, allocations: 217.4 kB / 0.7606 GB, free: 56 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.7162, allocations: 4 kB / 0.7606 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.7162, allocations: 0 / 0.7606 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.7163, allocations: 4 kB / 0.7606 GB, free: 48 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.7165, allocations: 39.97 kB / 0.7606 GB, free: 8 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.7165, allocations: 0 / 0.7606 GB, free: 8 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.7167, allocations: 39.98 kB / 0.7606 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.7167, allocations: 4 kB / 0.7607 GB, free: 15.96 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.7168, allocations: 129.7 kB / 0.7608 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/0.7169, allocations: 19.81 kB / 0.7608 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.568e-05/0.7169, allocations: 20.7 kB / 0.7608 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.717, allocations: 8 kB / 0.7608 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.717, allocations: 0 / 0.7608 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.717, allocations: 0 / 0.7608 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.7173, allocations: 241.5 kB / 0.7611 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.7173, allocations: 4 kB / 0.7611 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/0.7175, allocations: 35.97 kB / 0.7611 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.7175, allocations: 0 / 0.7611 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.7175, allocations: 8 kB / 0.7611 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.7175, allocations: 7.938 kB / 0.7611 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.7175, allocations: 0 / 0.7611 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007543/0.7183, allocations: 379.1 kB / 0.7615 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.74e-05/0.7184, allocations: 85.02 kB / 0.7615 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.7184, allocations: 4 kB / 0.7616 GB, free: 14.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.7186, allocations: 31.91 kB / 0.7616 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.032e-05/0.7186, allocations: 11.98 kB / 0.7616 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.7186, allocations: 12.05 kB / 0.7616 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.38e-05/0.7187, allocations: 109 kB / 0.7617 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7187, allocations: 0 / 0.7617 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002512/0.719, allocations: 39.84 kB / 0.7617 GB, free: 14.75 MB / 0.5417 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) * 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 (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.0001429/0.7191, allocations: 107.2 kB / 0.7619 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005011/0.7196, allocations: 167.8 kB / 0.762 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7197, allocations: 8.062 kB / 0.762 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.7199, allocations: 80.5 kB / 0.7621 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.7202, allocations: 30.5 kB / 0.7621 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008239/0.721, allocations: 489.7 kB / 0.7626 GB, free: 13.85 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.7213, allocations: 0.7238 MB / 0.7633 GB, free: 13.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.407e-05/0.7214, allocations: 12.55 kB / 0.7633 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.146e-05/0.7215, allocations: 11.44 kB / 0.7633 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of SimCode: time 2.7e-07/0.7215, allocations: 0 / 0.7633 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of Templates: time 0.003913/0.7254, allocations: 1.298 MB / 0.7646 GB, free: 11.79 MB / 0.5417 GB 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)