Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 217.8 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.21/3.21, allocations: 0.5003 GB / 0.8062 GB, free: 28.31 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 62.27 kB / 1.17 GB, free: 19.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3259, allocations: 179 MB / 1.345 GB, free: 15.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003237/0.3291, allocations: 1.699 MB / 1.347 GB, free: 14.26 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.3301, allocations: 494.8 kB / 1.347 GB, free: 13.77 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.587e-05/0.3302, allocations: 3.938 kB / 1.347 GB, free: 13.77 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.598e-05/0.3302, allocations: 7.922 kB / 1.347 GB, free: 13.76 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.249e-05/0.3303, allocations: 15.81 kB / 1.347 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002701/0.3306, allocations: 51.88 kB / 1.347 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.3307, allocations: 83.7 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.3309, allocations: 20.45 kB / 1.348 GB, free: 13.59 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.331, allocations: 51.77 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.164e-05/0.3311, allocations: 39.84 kB / 1.348 GB, free: 13.5 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.3311, allocations: 8 kB / 1.348 GB, free: 13.49 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.233e-05/0.3312, allocations: 12 kB / 1.348 GB, free: 13.48 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.906e-05/0.3312, allocations: 23.91 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.327e-05/0.3313, allocations: 23.88 kB / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.3314, allocations: 87.62 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3314, allocations: 0 / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3314, allocations: 4 kB / 1.348 GB, free: 13.34 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.979e-06/0.3314, allocations: 0 / 1.348 GB, free: 13.34 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005535/0.332, allocations: 321.9 kB / 1.348 GB, free: 13 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.332, allocations: 16.03 kB / 1.348 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.211e-05/0.3321, allocations: 192 / 1.348 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.489e-05/0.3321, allocations: 34.69 kB / 1.348 GB, free: 12.94 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/0.3323, allocations: 28.86 kB / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.3326, allocations: 142.3 kB / 1.348 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.3326, allocations: 384 / 1.348 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.3326, allocations: 4.375 kB / 1.348 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002551/0.3329, allocations: 124.9 kB / 1.348 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.3329, allocations: 4 kB / 1.348 GB, free: 12.6 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.3329, allocations: 4 kB / 1.348 GB, free: 12.6 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3329, allocations: 0 / 1.348 GB, free: 12.6 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.3331, allocations: 51.91 kB / 1.349 GB, free: 12.55 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/0.3335, allocations: 283.8 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.3337, allocations: 50.55 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.553e-05/0.3338, allocations: 32.94 kB / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.3338, allocations: 0 / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.3338, allocations: 34.56 kB / 1.349 GB, free: 12.09 MB / 1.045 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.3338, allocations: 3.938 kB / 1.349 GB, free: 12.09 MB / 1.045 GB Notification: Performance of matching and sorting (n=4): time 0.0003402/0.3342, allocations: 105.6 kB / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.3342, allocations: 77.11 kB / 1.349 GB, free: 11.88 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.3344, allocations: 143.5 kB / 1.349 GB, free: 11.73 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.3344, allocations: 25.7 kB / 1.349 GB, free: 11.7 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.279e-05/0.3345, allocations: 112 kB / 1.349 GB, free: 11.59 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.3345, allocations: 11.95 kB / 1.349 GB, free: 11.58 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-05/0.3345, allocations: 17.72 kB / 1.349 GB, free: 11.55 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3347, allocations: 314.8 kB / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.362e-05/0.3348, allocations: 27.98 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.3349, allocations: 63.41 kB / 1.35 GB, free: 11.14 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.3351, allocations: 52.95 kB / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3351, allocations: 0 / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002058/0.3353, allocations: 93.58 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.3353, allocations: 4 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.3353, allocations: 0 / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.3353, allocations: 4 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.494e-05/0.3354, allocations: 4 kB / 1.35 GB, free: 10.97 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.3354, allocations: 7.922 kB / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.742e-05/0.3355, allocations: 8 kB / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.3355, allocations: 7.984 kB / 1.35 GB, free: 10.95 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.572e-05/0.3356, allocations: 121.8 kB / 1.35 GB, free: 10.82 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.3356, allocations: 7.953 kB / 1.35 GB, free: 10.81 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.235e-05/0.3356, allocations: 8.344 kB / 1.35 GB, free: 10.8 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3356, allocations: 0 / 1.35 GB, free: 10.8 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.3357, allocations: 7.938 kB / 1.35 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3357, allocations: 192 / 1.35 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.3359, allocations: 160.6 kB / 1.35 GB, free: 10.59 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3359, allocations: 7.922 kB / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.924e-05/0.3359, allocations: 4 kB / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3359, allocations: 0 / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.3359, allocations: 11.98 kB / 1.35 GB, free: 10.57 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3359, allocations: 0 / 1.35 GB, free: 10.57 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3359, allocations: 3.938 kB / 1.35 GB, free: 10.56 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.3362, allocations: 175.5 kB / 1.35 GB, free: 10.38 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.613e-05/0.3362, allocations: 11.89 kB / 1.35 GB, free: 10.36 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.3362, allocations: 4 kB / 1.35 GB, free: 10.36 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.3363, allocations: 19.98 kB / 1.35 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.272e-05/0.3364, allocations: 11.92 kB / 1.35 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.3364, allocations: 0 / 1.35 GB, free: 10.33 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.888e-05/0.3365, allocations: 109 kB / 1.351 GB, free: 10.22 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3365, allocations: 4 kB / 1.351 GB, free: 10.22 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002297/0.3367, allocations: 8 kB / 1.351 GB, free: 10.21 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0006299/0.3373, allocations: 0.7124 MB / 1.351 GB, free: 9.473 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002089/0.3375, allocations: 47.97 kB / 1.351 GB, free: 9.426 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3375, allocations: 0 / 1.351 GB, free: 9.426 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.646e-05/0.3376, allocations: 35.91 kB / 1.351 GB, free: 9.391 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.3379, allocations: 11.94 kB / 1.351 GB, free: 9.379 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.3396, allocations: 1.444 MB / 1.353 GB, free: 7.852 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.036e-05/0.3397, allocations: 91.47 kB / 1.353 GB, free: 7.738 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.875e-05/0.3397, allocations: 0 / 1.353 GB, free: 7.738 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.367e-05/0.3398, allocations: 27.42 kB / 1.353 GB, free: 7.711 MB / 1.045 GB Notification: Performance of SimCode: time 3.01e-07/0.3398, allocations: 0 / 1.353 GB, free: 7.711 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.3625, allocations: 2.34 MB / 1.355 GB, free: 5.535 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.7, allocations: 0 / 1.355 GB, free: 5.535 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.37394066201523] Failed to read output from testmodel.py, exit status != 0: 11.86881687399 11.900030631 11.561521804 Calling exit ...