Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7236/0.7236, allocations: 127.4 MB / 134.6 MB, free: 4.074 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001209/0.001209, allocations: 193.2 kB / 164.4 MB, free: 6.879 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.802/1.802, allocations: 205.1 MB / 399.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 93.92 kB / 476.3 MB, free: 8.828 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3429/0.344, allocations: 82.88 MB / 0.546 GB, free: 42.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.5366, allocations: 76.75 MB / 0.621 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5061/1.043, allocations: 102.4 MB / 0.721 GB, free: 9.914 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/1.043, allocations: 79.95 kB / 0.7211 GB, free: 9.836 MB / 490.7 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.003768/1.047, allocations: 1.249 MB / 0.7223 GB, free: 8.539 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/1.047, allocations: 16 kB / 0.7223 GB, free: 8.523 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.965e-05/1.047, allocations: 3.906 kB / 0.7223 GB, free: 8.52 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/1.047, allocations: 174.9 kB / 0.7225 GB, free: 8.309 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/1.047, allocations: 0 / 0.7225 GB, free: 8.309 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/1.047, allocations: 4 kB / 0.7225 GB, free: 8.305 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.231e-05/1.047, allocations: 12 kB / 0.7225 GB, free: 8.293 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.626e-05/1.047, allocations: 54.17 kB / 0.7225 GB, free: 8.234 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/1.047, allocations: 0 / 0.7225 GB, free: 8.234 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/1.047, allocations: 0 / 0.7225 GB, free: 8.234 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/1.047, allocations: 3.984 kB / 0.7225 GB, free: 8.23 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003902/1.048, allocations: 249.4 kB / 0.7228 GB, free: 7.949 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.563e-05/1.048, allocations: 39.17 kB / 0.7228 GB, free: 7.902 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.597e-05/1.048, allocations: 18.8 kB / 0.7228 GB, free: 7.883 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/1.048, allocations: 4 kB / 0.7228 GB, free: 7.879 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001196/1.048, allocations: 93.16 kB / 0.7229 GB, free: 7.77 MB / 490.7 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/1.048, allocations: 4 kB / 0.7229 GB, free: 7.766 MB / 490.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002032/1.048, allocations: 74.28 kB / 0.723 GB, free: 7.688 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/1.048, allocations: 87.19 kB / 0.7231 GB, free: 7.586 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.772e-05/1.048, allocations: 101 kB / 0.7232 GB, free: 7.48 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/1.049, allocations: 25.7 kB / 0.7232 GB, free: 7.449 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.999e-05/1.049, allocations: 84.05 kB / 0.7233 GB, free: 7.363 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/1.049, allocations: 15.81 kB / 0.7233 GB, free: 7.348 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.558e-06/1.049, allocations: 0 / 0.7233 GB, free: 7.348 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001612/1.049, allocations: 322.8 kB / 0.7236 GB, free: 7.023 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.037e-05/1.049, allocations: 19.94 kB / 0.7236 GB, free: 7.004 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.268e-05/1.049, allocations: 31.45 kB / 0.7236 GB, free: 6.965 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.785e-05/1.049, allocations: 15.98 kB / 0.7237 GB, free: 6.949 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/1.049, allocations: 0 / 0.7237 GB, free: 6.949 MB / 490.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001243/1.049, allocations: 81.52 kB / 0.7237 GB, free: 6.863 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/1.049, allocations: 4 kB / 0.7237 GB, free: 6.859 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/1.049, allocations: 8.062 kB / 0.7237 GB, free: 6.852 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/1.049, allocations: 0 / 0.7237 GB, free: 6.852 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.531e-05/1.049, allocations: 11.94 kB / 0.7238 GB, free: 6.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/1.049, allocations: 3.938 kB / 0.7238 GB, free: 6.836 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.153e-05/1.049, allocations: 11.98 kB / 0.7238 GB, free: 6.824 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/1.049, allocations: 0 / 0.7238 GB, free: 6.824 MB / 490.7 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 () * 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.0001005/1.049, allocations: 146.4 kB / 0.7239 GB, free: 6.672 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/1.049, allocations: 11.91 kB / 0.7239 GB, free: 6.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.75e-05/1.049, allocations: 12.36 kB / 0.7239 GB, free: 6.652 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/1.049, allocations: 0 / 0.7239 GB, free: 6.652 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.049, allocations: 0 / 0.7239 GB, free: 6.652 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/1.049, allocations: 4 kB / 0.7239 GB, free: 6.648 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003255/1.05, allocations: 315 kB / 0.7242 GB, free: 6.297 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/1.05, allocations: 4.062 kB / 0.7242 GB, free: 6.293 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-05/1.05, allocations: 3.984 kB / 0.7243 GB, free: 6.289 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/1.05, allocations: 0 / 0.7243 GB, free: 6.289 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/1.05, allocations: 12 kB / 0.7243 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/1.05, allocations: 0 / 0.7243 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/1.05, allocations: 0 / 0.7243 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001586/1.05, allocations: 171.4 kB / 0.7244 GB, free: 6.094 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002664/1.05, allocations: 0.5545 MB / 0.725 GB, free: 5.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/1.05, allocations: 89 kB / 0.7251 GB, free: 5.414 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/1.05, allocations: 4 kB / 0.7251 GB, free: 5.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/1.051, allocations: 8 kB / 0.7251 GB, free: 5.402 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/1.051, allocations: 7.984 kB / 0.7251 GB, free: 5.395 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/1.051, allocations: 8 kB / 0.7251 GB, free: 5.387 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.894e-05/1.051, allocations: 83.27 kB / 0.7252 GB, free: 5.305 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008359/1.052, allocations: 23.91 kB / 0.7252 GB, free: 5.281 MB / 490.7 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) * 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 0.0001645/1.052, allocations: 95.25 kB / 0.7253 GB, free: 5.176 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001499/1.052, allocations: 73.64 kB / 0.7253 GB, free: 5.098 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.052, allocations: 0 / 0.7253 GB, free: 5.098 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 7.26e-05/1.052, allocations: 61.69 kB / 0.7254 GB, free: 5.031 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/1.052, allocations: 13.02 kB / 0.7254 GB, free: 5.02 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002827/1.052, allocations: 95.83 kB / 0.7255 GB, free: 4.902 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/1.053, allocations: 0.6997 MB / 0.7262 GB, free: 4.176 MB / 490.7 MB Notification: Performance of SimCode: time 2.224e-06/1.053, allocations: 0 / 0.7262 GB, free: 4.176 MB / 490.7 MB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)