Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",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.006457/0.006457, allocations: 97.11 kB / 15.73 MB, free: 6.047 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.001719/0.001719, allocations: 196.9 kB / 16.68 MB, free: 5.973 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9426/0.9426, allocations: 135.6 MB / 426.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 67.89 kB / 0.5857 GB, free: 3.242 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.4029, allocations: 81.02 MB / 0.6648 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.002676/0.4056, allocations: 2.028 MB / 0.6668 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007788/0.4064, allocations: 0.5259 MB / 0.6673 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.248e-05/0.4065, allocations: 6.531 kB / 0.6673 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.4066, allocations: 21.25 kB / 0.6674 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.42e-05/0.4067, allocations: 41.39 kB / 0.6674 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002029/0.4069, allocations: 50.56 kB / 0.6674 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001875/0.4071, allocations: 193.7 kB / 0.6676 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.4073, allocations: 75.84 kB / 0.6677 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.4074, allocations: 81.44 kB / 0.6678 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.4076, allocations: 78.16 kB / 0.6679 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.4076, allocations: 14.59 kB / 0.6679 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.214e-05/0.4076, allocations: 14.53 kB / 0.6679 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.541e-05/0.4077, allocations: 36.75 kB / 0.6679 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.497e-05/0.4078, allocations: 79.12 kB / 0.668 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.4079, allocations: 176.8 kB / 0.6682 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.408, allocations: 0 / 0.6682 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.408, allocations: 0 / 0.6682 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.408, allocations: 0 / 0.6682 GB, free: 4.34 MB / 0.4981 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.0006761/0.4087, allocations: 498.7 kB / 0.6686 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.4087, allocations: 9.562 kB / 0.6686 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.695e-05/0.4087, allocations: 48.02 kB / 0.6687 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.354e-05/0.4088, allocations: 25.48 kB / 0.6687 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.409, allocations: 213.5 kB / 0.6689 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.697e-05/0.409, allocations: 40.64 kB / 0.669 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.981e-05/0.4091, allocations: 18.08 kB / 0.669 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003711/0.4094, allocations: 151.3 kB / 0.6691 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.4095, allocations: 0 / 0.6691 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.4095, allocations: 5.656 kB / 0.6691 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.4095, allocations: 3.594 kB / 0.6691 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004801/0.41, allocations: 149.8 kB / 0.6693 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/0.4106, allocations: 0.5429 MB / 0.6698 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004038/0.4111, allocations: 125.5 kB / 0.6699 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/0.4113, allocations: 80.48 kB / 0.67 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.4113, allocations: 5.312 kB / 0.67 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.343e-05/0.4113, allocations: 39.75 kB / 0.67 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.492e-06/0.4113, allocations: 0 / 0.67 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006941/0.412, allocations: 217 kB / 0.6702 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.964e-05/0.4121, allocations: 53.81 kB / 0.6703 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.502e-05/0.4122, allocations: 153.1 kB / 0.6704 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.4122, allocations: 27.08 kB / 0.6705 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.142e-05/0.4122, allocations: 132.1 kB / 0.6706 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.4123, allocations: 44.81 kB / 0.6706 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/0.4123, allocations: 30.88 kB / 0.6707 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.194e-05/0.4124, allocations: 321.3 kB / 0.671 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.4126, allocations: 64.75 kB / 0.671 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.4128, allocations: 92.3 kB / 0.6711 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/0.4132, allocations: 137.3 kB / 0.6713 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4132, allocations: 0 / 0.6713 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004682/0.4137, allocations: 191.8 kB / 0.6714 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.4137, allocations: 9.062 kB / 0.6714 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.4137, allocations: 1.344 kB / 0.6714 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.4138, allocations: 1.219 kB / 0.6714 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.414, allocations: 43.64 kB / 0.6715 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.414, allocations: 1.438 kB / 0.6715 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.4141, allocations: 23.81 kB / 0.6715 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.4141, allocations: 4.094 kB / 0.6715 GB, free: 1.527 MB / 0.4981 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 (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 8.803e-05/0.4142, allocations: 136.2 kB / 0.6716 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.878e-05/0.4143, allocations: 14.34 kB / 0.6717 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.54e-05/0.4143, allocations: 27.61 kB / 0.6717 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4143, allocations: 1.469 kB / 0.6717 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.4143, allocations: 0 / 0.6717 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4143, allocations: 1.438 kB / 0.6717 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.4146, allocations: 239.1 kB / 0.6719 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4146, allocations: 0 / 0.6719 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001938/0.4148, allocations: 37.31 kB / 0.672 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4148, allocations: 0 / 0.672 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.4148, allocations: 5.188 kB / 0.672 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.4148, allocations: 5.359 kB / 0.672 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.4148, allocations: 3.984 kB / 0.672 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.4155, allocations: 342.9 kB / 0.6723 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.812e-05/0.4155, allocations: 89.08 kB / 0.6724 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.4156, allocations: 1.344 kB / 0.6724 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.4157, allocations: 21.94 kB / 0.6724 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.4158, allocations: 13.48 kB / 0.6724 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.4158, allocations: 2.375 kB / 0.6724 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.164e-05/0.4159, allocations: 117.6 kB / 0.6725 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4159, allocations: 0 / 0.6725 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002678/0.4162, allocations: 36.44 kB / 0.6726 GB, free: 0.625 MB / 0.4981 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 (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.0009291/0.4171, allocations: 0.8761 MB / 0.6734 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005118/0.4176, allocations: 146.5 kB / 0.6736 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4176, allocations: 4 kB / 0.6736 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.4179, allocations: 75.61 kB / 0.6736 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.4183, allocations: 25.53 kB / 0.6737 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.4211, allocations: 1.99 MB / 0.6756 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.4214, allocations: 0.7161 MB / 0.6763 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.786e-05/0.4215, allocations: 10 kB / 0.6763 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.468e-05/0.4216, allocations: 45.56 kB / 0.6764 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.4216, allocations: 0 / 0.6764 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2506/0.6722, allocations: 3.288 MB / 0.6796 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.546/9.218, allocations: 13.08 kB / 0.6796 GB, free: 11.66 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)