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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.749/0.749, allocations: 128.7 MB / 143.7 MB, free: 2.328 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.00117/0.00117, allocations: 192.2 kB / 173.7 MB, free: 6.141 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.602/1.602, allocations: 205.4 MB / 409 MB, free: 10.51 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.001045/0.001045, allocations: 94.62 kB / 486.5 MB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003295/0.0003294, allocations: 11.97 kB / 0.5604 GB, free: 97.46 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1338, allocations: 76.77 MB / 0.6354 GB, free: 30.5 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.2839, allocations: 103.2 MB / 0.7362 GB, free: 7.148 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.2842, allocations: 79.95 kB / 0.7363 GB, free: 7.07 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.004483/0.2887, allocations: 1.203 MB / 0.7374 GB, free: 5.859 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.334e-06/0.2887, allocations: 3.938 kB / 0.7374 GB, free: 5.855 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.2888, allocations: 0 / 0.7374 GB, free: 5.855 MB / 0.5105 GB 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.00062/0.2894, allocations: 396.9 kB / 0.7378 GB, free: 5.414 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.2895, allocations: 8.031 kB / 0.7378 GB, free: 5.406 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.679e-05/0.2895, allocations: 34.56 kB / 0.7378 GB, free: 5.363 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.2896, allocations: 7.859 kB / 0.7379 GB, free: 5.355 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.2897, allocations: 167.1 kB / 0.738 GB, free: 5.152 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.2898, allocations: 4 kB / 0.738 GB, free: 5.148 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.2898, allocations: 8 kB / 0.738 GB, free: 5.141 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.2899, allocations: 49.62 kB / 0.7381 GB, free: 5.086 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.29, allocations: 0 / 0.7381 GB, free: 5.086 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.29, allocations: 3.984 kB / 0.7381 GB, free: 5.082 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.29, allocations: 0 / 0.7381 GB, free: 5.082 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.405e-05/0.2901, allocations: 23.95 kB / 0.7381 GB, free: 5.059 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005314/0.2906, allocations: 264.9 kB / 0.7384 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.2908, allocations: 46.55 kB / 0.7384 GB, free: 4.695 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.2908, allocations: 4 kB / 0.7384 GB, free: 4.691 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.291, allocations: 105.1 kB / 0.7385 GB, free: 4.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=9): time 1.683e-06/0.291, allocations: 0 / 0.7385 GB, free: 4.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=9): time 0.0003973/0.2914, allocations: 220.3 kB / 0.7387 GB, free: 4.324 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.2915, allocations: 81.11 kB / 0.7388 GB, free: 4.227 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.489e-05/0.2916, allocations: 109 kB / 0.7389 GB, free: 4.113 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.2916, allocations: 29.7 kB / 0.7389 GB, free: 4.078 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/0.2917, allocations: 84.14 kB / 0.739 GB, free: 3.992 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/0.2918, allocations: 23.72 kB / 0.739 GB, free: 3.969 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.515e-06/0.2918, allocations: 4 kB / 0.739 GB, free: 3.965 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2919, allocations: 321 kB / 0.7393 GB, free: 3.645 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.437e-05/0.292, allocations: 15.98 kB / 0.7394 GB, free: 3.629 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.063e-05/0.2921, allocations: 34.8 kB / 0.7394 GB, free: 3.586 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.276e-05/0.2921, allocations: 54.08 kB / 0.7394 GB, free: 3.527 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.2922, allocations: 0 / 0.7394 GB, free: 3.527 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002208/0.2924, allocations: 127.3 kB / 0.7396 GB, free: 3.391 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.623e-05/0.2924, allocations: 37.64 kB / 0.7396 GB, free: 3.348 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2925, allocations: 0 / 0.7396 GB, free: 3.348 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.2925, allocations: 4 kB / 0.7396 GB, free: 3.344 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.398e-05/0.2926, allocations: 7.938 kB / 0.7396 GB, free: 3.336 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.2926, allocations: 4 kB / 0.7396 GB, free: 3.332 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.776e-05/0.2927, allocations: 8.062 kB / 0.7396 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.2927, allocations: 4 kB / 0.7396 GB, free: 3.32 MB / 0.5105 GB 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.0001303/0.2928, allocations: 151.5 kB / 0.7398 GB, free: 3.156 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-05/0.2929, allocations: 11.91 kB / 0.7398 GB, free: 3.145 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.2929, allocations: 4.375 kB / 0.7398 GB, free: 3.141 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.2929, allocations: 4 kB / 0.7398 GB, free: 3.137 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.2929, allocations: 3.953 kB / 0.7398 GB, free: 3.133 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2929, allocations: 0 / 0.7398 GB, free: 3.133 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005069/0.2935, allocations: 396.3 kB / 0.7402 GB, free: 2.684 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.2935, allocations: 8 kB / 0.7402 GB, free: 2.676 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.416e-05/0.2935, allocations: 7.922 kB / 0.7402 GB, free: 2.668 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2935, allocations: 0 / 0.7402 GB, free: 2.668 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.2935, allocations: 3.953 kB / 0.7402 GB, free: 2.664 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2936, allocations: 4 kB / 0.7402 GB, free: 2.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2936, allocations: 0 / 0.7402 GB, free: 2.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/0.2938, allocations: 229.1 kB / 0.7404 GB, free: 2.414 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.882e-05/0.2939, allocations: 85.02 kB / 0.7405 GB, free: 2.312 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.2939, allocations: 3.938 kB / 0.7405 GB, free: 2.309 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.2941, allocations: 15.94 kB / 0.7405 GB, free: 2.293 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.696e-05/0.2942, allocations: 11.98 kB / 0.7405 GB, free: 2.281 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.2942, allocations: 7.938 kB / 0.7405 GB, free: 2.273 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 6.558e-05/0.2943, allocations: 91.27 kB / 0.7406 GB, free: 2.184 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2943, allocations: 0 / 0.7406 GB, free: 2.184 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003528/0.2946, allocations: 19.98 kB / 0.7406 GB, free: 2.164 MB / 0.5105 GB 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 0.0006343/0.2953, allocations: 0.7613 MB / 0.7414 GB, free: 1.371 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002408/0.2955, allocations: 119.3 kB / 0.7415 GB, free: 1.242 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2955, allocations: 0 / 0.7415 GB, free: 1.242 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.2957, allocations: 87.53 kB / 0.7416 GB, free: 1.145 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.296, allocations: 18.44 kB / 0.7416 GB, free: 1.129 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.2972, allocations: 0.7894 MB / 0.7424 GB, free: 288 kB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2562/0.5534, allocations: 0.6816 MB / 0.743 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 5.63e-05/0.5535, allocations: 4.609 kB / 0.743 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.175e-05/0.5535, allocations: 15.73 kB / 0.743 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.112e-06/0.5535, allocations: 0 / 0.743 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01271/0.5663, allocations: 1.588 MB / 0.7446 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001489/0.5665, allocations: 189.8 kB / 0.7448 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.542/2.109, allocations: 2.391 kB / 0.7448 GB, free: 108.4 MB / 0.5105 GB (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)