Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008336/0.0008336, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0008347/0.0008348, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.139/1.139, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001595/0.001595, allocations: 262.7 kB / 291.2 MB, free: 2.023 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7393/0.7393, allocations: 144.6 MB / 487 MB, free: 7.215 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003678, allocations: 17.14 kB / 0.5683 GB, free: 38.35 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1147, allocations: 83.08 MB / 0.6494 GB, free: 3.699 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.001342/0.116, allocations: 1.124 MB / 0.6505 GB, free: 2.566 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005562/0.1166, allocations: 400.3 kB / 0.6509 GB, free: 2.172 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.468e-05/0.1166, allocations: 2.344 kB / 0.6509 GB, free: 2.172 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.728e-05/0.1167, allocations: 7.922 kB / 0.6509 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.534e-05/0.1167, allocations: 7.984 kB / 0.6509 GB, free: 2.156 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001113/0.1168, allocations: 15.92 kB / 0.6509 GB, free: 2.141 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.61e-05/0.1169, allocations: 35.89 kB / 0.651 GB, free: 2.105 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.715e-05/0.117, allocations: 6.031 kB / 0.651 GB, free: 2.102 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.105e-05/0.1171, allocations: 23.91 kB / 0.651 GB, free: 2.078 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.495e-05/0.1171, allocations: 15.92 kB / 0.651 GB, free: 2.062 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.703e-05/0.1171, allocations: 4 kB / 0.651 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.238e-06/0.1172, allocations: 0 / 0.651 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.581e-05/0.1172, allocations: 8.594 kB / 0.651 GB, free: 2.051 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.007e-05/0.1172, allocations: 29.7 kB / 0.6511 GB, free: 2.016 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 6.275e-05/0.1173, allocations: 24.58 kB / 0.6511 GB, free: 1.992 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.1173, allocations: 0.5938 kB / 0.6511 GB, free: 1.992 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1173, allocations: 0 / 0.6511 GB, free: 1.992 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.1173, allocations: 4.531 kB / 0.6511 GB, free: 1.988 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004697/0.1178, allocations: 391.3 kB / 0.6515 GB, free: 1.555 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.1178, allocations: 9.125 kB / 0.6515 GB, free: 1.547 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.639e-05/0.1178, allocations: 7.906 kB / 0.6515 GB, free: 1.539 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.118, allocations: 167 kB / 0.6516 GB, free: 1.336 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.118, allocations: 8.672 kB / 0.6516 GB, free: 1.328 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.118, allocations: 8.594 kB / 0.6516 GB, free: 1.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.852e-05/0.1181, allocations: 43.19 kB / 0.6517 GB, free: 1.273 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.64e-06/0.1181, allocations: 0 / 0.6517 GB, free: 1.273 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.1181, allocations: 7.984 kB / 0.6517 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1181, allocations: 0 / 0.6517 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.752e-05/0.1182, allocations: 16.66 kB / 0.6517 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003329/0.1185, allocations: 278 kB / 0.652 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.217e-05/0.1186, allocations: 43.59 kB / 0.652 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.1186, allocations: 0 / 0.652 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001623/0.1188, allocations: 106.7 kB / 0.6521 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.1188, allocations: 3.938 kB / 0.6521 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002732/0.1191, allocations: 217.2 kB / 0.6523 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.1192, allocations: 82.3 kB / 0.6524 GB, free: 424 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.309e-05/0.1192, allocations: 125.8 kB / 0.6525 GB, free: 288 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.1193, allocations: 25.7 kB / 0.6526 GB, free: 256 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.416e-05/0.1193, allocations: 88.8 kB / 0.6526 GB, free: 164 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/0.1193, allocations: 12.33 kB / 0.6526 GB, free: 152 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-06/0.1193, allocations: 8 kB / 0.6527 GB, free: 144 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1195, allocations: 315.5 kB / 0.653 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.111e-05/0.1195, allocations: 20.86 kB / 0.653 GB, free: 15.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.267e-05/0.1196, allocations: 35.44 kB / 0.653 GB, free: 15.76 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.855e-05/0.1196, allocations: 47.39 kB / 0.6531 GB, free: 15.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1196, allocations: 0 / 0.6531 GB, free: 15.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001448/0.1198, allocations: 127.2 kB / 0.6532 GB, free: 15.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.1198, allocations: 34.39 kB / 0.6532 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1198, allocations: 4.062 kB / 0.6532 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.1198, allocations: 4.859 kB / 0.6532 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.762e-05/0.1199, allocations: 7.938 kB / 0.6532 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.1199, allocations: 0.75 kB / 0.6532 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.9e-05/0.12, allocations: 10.44 kB / 0.6532 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.12, allocations: 4 kB / 0.6532 GB, free: 15.51 MB / 462.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: 11 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001021/0.1201, allocations: 156.8 kB / 0.6534 GB, free: 15.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.648e-05/0.1201, allocations: 7.906 kB / 0.6534 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.314e-05/0.1201, allocations: 5 kB / 0.6534 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1201, allocations: 0 / 0.6534 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1202, allocations: 1.469 kB / 0.6534 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1202, allocations: 4 kB / 0.6534 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003694/0.1205, allocations: 404.1 kB / 0.6538 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1205, allocations: 1.219 kB / 0.6538 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.788e-06/0.1206, allocations: 8 kB / 0.6538 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1206, allocations: 2.906 kB / 0.6538 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.1206, allocations: 0 / 0.6538 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1206, allocations: 7.938 kB / 0.6538 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1206, allocations: 0 / 0.6538 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001965/0.1208, allocations: 233 kB / 0.654 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.468e-05/0.1208, allocations: 86.67 kB / 0.6541 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.1209, allocations: 4 kB / 0.6541 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.731e-05/0.121, allocations: 11.98 kB / 0.6541 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.121, allocations: 8.516 kB / 0.6541 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.121, allocations: 5.719 kB / 0.6541 GB, free: 14.47 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.908e-05/0.1211, allocations: 87.27 kB / 0.6542 GB, free: 14.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1211, allocations: 4 kB / 0.6542 GB, free: 14.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.1213, allocations: 12 kB / 0.6542 GB, free: 14.37 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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 9.173e-05/0.1214, allocations: 104.3 kB / 0.6543 GB, free: 14.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.1216, allocations: 115.4 kB / 0.6545 GB, free: 14.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1216, allocations: 0 / 0.6545 GB, free: 14.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 8.26e-05/0.1217, allocations: 91.34 kB / 0.6545 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.1219, allocations: 17.5 kB / 0.6546 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000296/0.1222, allocations: 161.1 kB / 0.6547 GB, free: 13.83 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.1224, allocations: 0.6887 MB / 0.6554 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.359e-05/0.1225, allocations: 0 / 0.6554 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.163e-05/0.1225, allocations: 11.44 kB / 0.6554 GB, free: 13.11 MB / 462.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1225, allocations: 0 / 0.6554 GB, free: 13.11 MB / 462.1 MB Notification: Performance of Templates: time 0.002596/0.1251, allocations: 0.7464 MB / 0.6561 GB, free: 12.37 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & ./BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) Environment - environmentSimulation: