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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 108 kB / 15.6 MB, free: 132 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.001037/0.001037, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.215/1.215, 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.6836/0.6836, allocations: 132.2 MB / 422.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 67.98 kB / 0.5019 GB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3094, allocations: 80.2 MB / 0.5802 GB, free: 4.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.002506/0.312, allocations: 2.032 MB / 0.5822 GB, free: 3.152 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006215/0.3126, allocations: 0.5289 MB / 0.5827 GB, free: 2.773 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.912e-05/0.3127, allocations: 1.75 kB / 0.5827 GB, free: 2.773 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.483e-05/0.3128, allocations: 23.94 kB / 0.5827 GB, free: 2.758 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 7.818e-05/0.3129, allocations: 45.22 kB / 0.5828 GB, free: 2.723 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.3131, allocations: 61.48 kB / 0.5828 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.3133, allocations: 187.9 kB / 0.583 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.3134, allocations: 67.09 kB / 0.5831 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.3135, allocations: 74.41 kB / 0.5831 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.3136, allocations: 76.73 kB / 0.5832 GB, free: 2.484 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.953e-05/0.3137, allocations: 14.5 kB / 0.5832 GB, free: 2.484 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.094e-05/0.3137, allocations: 14.66 kB / 0.5832 GB, free: 2.484 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.423e-05/0.3137, allocations: 35.16 kB / 0.5833 GB, free: 2.461 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.572e-05/0.3138, allocations: 83.2 kB / 0.5833 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.314, allocations: 173.4 kB / 0.5835 GB, free: 2.336 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.314, allocations: 0 / 0.5835 GB, free: 2.336 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.314, allocations: 1.094 kB / 0.5835 GB, free: 2.336 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.314, allocations: 0 / 0.5835 GB, free: 2.336 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.0006142/0.3146, allocations: 490.6 kB / 0.584 GB, free: 1.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.3147, allocations: 13.41 kB / 0.584 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.525e-05/0.3147, allocations: 46.22 kB / 0.584 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.3147, allocations: 23.23 kB / 0.5841 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.3149, allocations: 214.5 kB / 0.5843 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.914e-05/0.3149, allocations: 41.39 kB / 0.5843 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.315, allocations: 13.94 kB / 0.5843 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003518/0.3153, allocations: 156.5 kB / 0.5845 GB, free: 1.508 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.3154, allocations: 5 kB / 0.5845 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.3154, allocations: 4.844 kB / 0.5845 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.3154, allocations: 3.594 kB / 0.5845 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004588/0.3158, allocations: 143 kB / 0.5846 GB, free: 1.469 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006232/0.3165, allocations: 0.5296 MB / 0.5851 GB, free: 1.039 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000382/0.3169, allocations: 143.8 kB / 0.5853 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.3171, allocations: 78.84 kB / 0.5853 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.3171, allocations: 1.766 kB / 0.5853 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.053e-05/0.3171, allocations: 35.53 kB / 0.5854 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.3171, allocations: 1 kB / 0.5854 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006624/0.3178, allocations: 217.2 kB / 0.5856 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.892e-05/0.3178, allocations: 57.72 kB / 0.5856 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.81e-05/0.3179, allocations: 155.5 kB / 0.5858 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.318, allocations: 25.7 kB / 0.5858 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.557e-05/0.318, allocations: 137.8 kB / 0.5859 GB, free: 496 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.318, allocations: 40.34 kB / 0.586 GB, free: 464 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.3181, allocations: 28.89 kB / 0.586 GB, free: 440 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.668e-05/0.3181, allocations: 323.5 kB / 0.5863 GB, free: 116 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.3183, allocations: 62.38 kB / 0.5864 GB, free: 100 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.3186, allocations: 88.41 kB / 0.5865 GB, free: 56 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003924/0.319, allocations: 147.5 kB / 0.5866 GB, free: 15.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.319, allocations: 3.938 kB / 0.5866 GB, free: 15.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004691/0.3194, allocations: 190.1 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.3195, allocations: 9.688 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3195, allocations: 1.125 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3195, allocations: 1.406 kB / 0.5868 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.3197, allocations: 41.48 kB / 0.5868 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3197, allocations: 5 kB / 0.5868 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.3198, allocations: 22.72 kB / 0.5869 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.3199, allocations: 4.141 kB / 0.5869 GB, free: 15.89 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 8.953e-05/0.3199, allocations: 129.1 kB / 0.587 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.767e-05/0.32, allocations: 15.27 kB / 0.587 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.282e-05/0.32, allocations: 20.83 kB / 0.587 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.32, allocations: 2.125 kB / 0.587 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.3201, allocations: 0 / 0.587 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3201, allocations: 1.812 kB / 0.587 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.3203, allocations: 243.1 kB / 0.5873 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3203, allocations: 0 / 0.5873 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/0.3205, allocations: 36.88 kB / 0.5873 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3205, allocations: 4.562 kB / 0.5873 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.3205, allocations: 6.234 kB / 0.5873 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3205, allocations: 0.9375 kB / 0.5873 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3205, allocations: 0 / 0.5873 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007061/0.3213, allocations: 342.2 kB / 0.5876 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.137e-05/0.3213, allocations: 85.08 kB / 0.5877 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.3213, allocations: 5.438 kB / 0.5877 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.3215, allocations: 17.47 kB / 0.5877 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.847e-05/0.3215, allocations: 18.34 kB / 0.5878 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.3216, allocations: 3.328 kB / 0.5878 GB, free: 15.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.768e-05/0.3216, allocations: 117.5 kB / 0.5879 GB, free: 15.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3216, allocations: 0 / 0.5879 GB, free: 15.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000253/0.3219, allocations: 40.5 kB / 0.5879 GB, free: 15.1 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.0009216/0.3228, allocations: 0.8778 MB / 0.5888 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000455/0.3233, allocations: 143.3 kB / 0.5889 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3233, allocations: 4.188 kB / 0.5889 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002134/0.3235, allocations: 82.34 kB / 0.589 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.3238, allocations: 17.56 kB / 0.589 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.3263, allocations: 1.961 MB / 0.5909 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.3266, allocations: 0.7171 MB / 0.5916 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.279e-05/0.3266, allocations: 13 kB / 0.5916 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.454e-05/0.3267, allocations: 42.5 kB / 0.5917 GB, free: 12.08 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3267, allocations: 4 kB / 0.5917 GB, free: 12.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.152/1.479, allocations: 3.235 MB / 0.5948 GB, free: 11.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/11.95, allocations: 6.828 kB / 0.5948 GB, free: 11.36 MB / 446.1 MB (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/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)