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: "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",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.005926/0.005926, allocations: 99.64 kB / 15.73 MB, free: 6.02 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.001272/0.001272, allocations: 190.8 kB / 16.67 MB, free: 5.961 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002072/0.002072, allocations: 282.7 kB / 290.8 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9562/0.9562, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 95.86 kB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1768, allocations: 86.97 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002631/0.1794, allocations: 1.415 MB / 0.7672 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008011/0.1803, allocations: 443.4 kB / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.505e-05/0.1803, allocations: 0 / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.592e-05/0.1803, allocations: 3.938 kB / 0.7677 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 9.03e-05/0.1805, allocations: 7.938 kB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001575/0.1806, allocations: 15.92 kB / 0.7677 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001431/0.1808, allocations: 55.84 kB / 0.7677 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.817e-05/0.1809, allocations: 8.266 kB / 0.7678 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.793e-05/0.1809, allocations: 27.86 kB / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.349e-05/0.181, allocations: 19.92 kB / 0.7678 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.181, allocations: 4 kB / 0.7678 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.1811, allocations: 4 kB / 0.7678 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.1811, allocations: 7.922 kB / 0.7678 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.578e-05/0.1811, allocations: 19.94 kB / 0.7678 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.1813, allocations: 51.75 kB / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1813, allocations: 0 / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1813, allocations: 4 kB / 0.7679 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.1813, allocations: 0 / 0.7679 GB, free: 6.875 MB / 0.5606 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.0005926/0.1819, allocations: 393 kB / 0.7683 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1819, allocations: 12.03 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.182, allocations: 30.75 kB / 0.7683 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.235e-05/0.182, allocations: 4.938 kB / 0.7683 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.1821, allocations: 176.2 kB / 0.7685 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.1822, allocations: 4.375 kB / 0.7685 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.1822, allocations: 8.359 kB / 0.7685 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.1823, allocations: 57.75 kB / 0.7685 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1823, allocations: 0 / 0.7685 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.1823, allocations: 0 / 0.7685 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1824, allocations: 0 / 0.7685 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.521e-05/0.1824, allocations: 19.98 kB / 0.7686 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000397/0.1828, allocations: 272.8 kB / 0.7688 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 8.147e-05/0.1829, allocations: 42.56 kB / 0.7689 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.491e-05/0.183, allocations: 16.98 kB / 0.7689 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.796e-05/0.183, allocations: 8.062 kB / 0.7689 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.1832, allocations: 101 kB / 0.769 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.1832, allocations: 0 / 0.769 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.000276/0.1835, allocations: 139.3 kB / 0.7691 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.1836, allocations: 85.11 kB / 0.7692 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.079e-05/0.1837, allocations: 109.8 kB / 0.7693 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.1837, allocations: 29.7 kB / 0.7693 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.561e-05/0.1837, allocations: 84.05 kB / 0.7694 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.1838, allocations: 23.73 kB / 0.7694 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.1838, allocations: 33.64 kB / 0.7695 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1839, allocations: 322.8 kB / 0.7698 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.448e-05/0.184, allocations: 16 kB / 0.7698 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.714e-05/0.184, allocations: 38.56 kB / 0.7698 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.1841, allocations: 113.9 kB / 0.7699 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1842, allocations: 0 / 0.7699 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001729/0.1843, allocations: 123.3 kB / 0.77 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.1844, allocations: 33.7 kB / 0.7701 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.1844, allocations: 64 / 0.7701 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.1844, allocations: 4 kB / 0.7701 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.965e-05/0.1845, allocations: 4 kB / 0.7701 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.1845, allocations: 400 / 0.7701 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.371e-05/0.1846, allocations: 16.27 kB / 0.7701 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.1846, allocations: 4 kB / 0.7701 GB, free: 4.297 MB / 0.5606 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 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.1847, allocations: 155.6 kB / 0.7703 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.1847, allocations: 4 kB / 0.7703 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.1848, allocations: 12.31 kB / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1848, allocations: 7.984 kB / 0.7703 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1848, allocations: 0 / 0.7703 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1848, allocations: 0 / 0.7703 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.1852, allocations: 408 kB / 0.7707 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.1852, allocations: 4.062 kB / 0.7707 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.995e-06/0.1852, allocations: 3.938 kB / 0.7707 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1852, allocations: 0 / 0.7707 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.1853, allocations: 7.984 kB / 0.7707 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1853, allocations: 0 / 0.7707 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.1853, allocations: 4.016 kB / 0.7707 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.1855, allocations: 233.2 kB / 0.7709 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-05/0.1856, allocations: 85.02 kB / 0.771 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.1856, allocations: 4 kB / 0.771 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.1857, allocations: 7.984 kB / 0.771 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.1858, allocations: 11.92 kB / 0.771 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.1858, allocations: 4 kB / 0.771 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.837e-05/0.1858, allocations: 91.28 kB / 0.7711 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1858, allocations: 0 / 0.7711 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002533/0.1861, allocations: 19.94 kB / 0.7711 GB, free: 3.141 MB / 0.5606 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 (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.0005199/0.1866, allocations: 0.7687 MB / 0.7719 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001803/0.1868, allocations: 119.2 kB / 0.772 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1868, allocations: 4.125 kB / 0.772 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.274e-05/0.1869, allocations: 87.39 kB / 0.7721 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.1873, allocations: 19.92 kB / 0.7721 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.1886, allocations: 1.429 MB / 0.7735 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3018/0.4904, allocations: 0.682 MB / 0.7742 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.385e-05/0.4905, allocations: 4.656 kB / 0.7742 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.059e-05/0.4905, allocations: 17.88 kB / 0.7742 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of SimCode: time 5.91e-07/0.4905, allocations: 0 / 0.7742 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.5084, allocations: 1.927 MB / 0.7761 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.22/7.729, allocations: 11.98 kB / 0.7761 GB, free: 14.06 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay.fmu > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)