Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_latest_Buildings_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.0009901/0.0009902, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001246/0.001247, allocations: 172.7 kB / 15.95 MB, free: 208 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.34/1.34, allocations: 223.2 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.42/2.42, allocations: 409.4 MB / 0.684 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003326, allocations: 8 kB / 0.8378 GB, free: 6.508 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8087/0.809, allocations: 146.8 MB / 0.9811 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001842/0.8109, allocations: 1.14 MB / 0.9822 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006641/0.8116, allocations: 395.4 kB / 0.9826 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.643e-05/0.8117, allocations: 0 / 0.9826 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.529e-05/0.8117, allocations: 4 kB / 0.9826 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.103e-05/0.8118, allocations: 11.91 kB / 0.9826 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001482/0.812, allocations: 19.92 kB / 0.9827 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.661e-05/0.812, allocations: 43.86 kB / 0.9827 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.21e-05/0.8121, allocations: 4 kB / 0.9827 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.796e-05/0.8122, allocations: 15.92 kB / 0.9827 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.026e-05/0.8122, allocations: 23.91 kB / 0.9827 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.8123, allocations: 0 / 0.9827 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.072e-05/0.8123, allocations: 4 kB / 0.9827 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.8123, allocations: 15.92 kB / 0.9828 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.827e-05/0.8124, allocations: 29.7 kB / 0.9828 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 6.503e-05/0.8124, allocations: 26.2 kB / 0.9828 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.8124, allocations: 0 / 0.9828 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.773e-06/0.8124, allocations: 0 / 0.9828 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.8125, allocations: 0 / 0.9828 GB, free: 4.496 MB / 0.7325 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.0005372/0.813, allocations: 396.8 kB / 0.9832 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.813, allocations: 12.03 kB / 0.9832 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.031e-05/0.8131, allocations: 34.56 kB / 0.9832 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.8131, allocations: 4 kB / 0.9832 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.8133, allocations: 170.9 kB / 0.9834 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.8133, allocations: 4 kB / 0.9834 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.8133, allocations: 4 kB / 0.9834 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.8134, allocations: 61.61 kB / 0.9835 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.8134, allocations: 7.938 kB / 0.9835 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.8135, allocations: 4 kB / 0.9835 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.8135, allocations: 0 / 0.9835 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.454e-05/0.8135, allocations: 15.98 kB / 0.9835 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004147/0.814, allocations: 276.8 kB / 0.9838 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.514e-05/0.8141, allocations: 46.5 kB / 0.9838 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.498e-05/0.8141, allocations: 20.98 kB / 0.9838 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.8141, allocations: 4 kB / 0.9838 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.8143, allocations: 105.1 kB / 0.9839 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.634e-06/0.8143, allocations: 0 / 0.9839 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0002848/0.8146, allocations: 139.2 kB / 0.9841 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.8147, allocations: 85.17 kB / 0.9841 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.581e-05/0.8148, allocations: 109.8 kB / 0.9842 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.8148, allocations: 25.7 kB / 0.9843 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.8149, allocations: 96.08 kB / 0.9844 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.8149, allocations: 11.81 kB / 0.9844 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.55e-06/0.8149, allocations: 4 kB / 0.9844 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.815, allocations: 314.8 kB / 0.9847 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.984e-05/0.8151, allocations: 16 kB / 0.9847 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.544e-05/0.8151, allocations: 34.56 kB / 0.9847 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.901e-05/0.8152, allocations: 45.7 kB / 0.9848 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.8152, allocations: 4 kB / 0.9848 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001582/0.8153, allocations: 131.2 kB / 0.9849 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/0.8154, allocations: 33.7 kB / 0.9849 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.8154, allocations: 0 / 0.9849 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.8154, allocations: 4 kB / 0.9849 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.237e-05/0.8155, allocations: 0 / 0.9849 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.8155, allocations: 7.938 kB / 0.9849 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.207e-05/0.8155, allocations: 7.984 kB / 0.9849 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.8156, allocations: 12.38 kB / 0.985 GB, free: 2.008 MB / 0.7325 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.0001213/0.8157, allocations: 153.1 kB / 0.9851 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.692e-05/0.8157, allocations: 11.86 kB / 0.9851 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.874e-05/0.8158, allocations: 4.375 kB / 0.9851 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.8158, allocations: 7.938 kB / 0.9851 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.8158, allocations: 0 / 0.9851 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8158, allocations: 0 / 0.9851 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004082/0.8162, allocations: 404.1 kB / 0.9855 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.8162, allocations: 4 kB / 0.9855 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.023e-05/0.8162, allocations: 4 kB / 0.9855 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.8162, allocations: 0 / 0.9855 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.8163, allocations: 7.984 kB / 0.9855 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.8163, allocations: 0 / 0.9855 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.8163, allocations: 0 / 0.9855 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.8165, allocations: 237 kB / 0.9858 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.586e-05/0.8166, allocations: 81.02 kB / 0.9858 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.8166, allocations: 12 kB / 0.9858 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.584e-05/0.8167, allocations: 11.98 kB / 0.9859 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.184e-05/0.8168, allocations: 3.984 kB / 0.9859 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.8168, allocations: 8.062 kB / 0.9859 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.206e-05/0.8168, allocations: 87.83 kB / 0.9859 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8168, allocations: 0 / 0.9859 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002215/0.8171, allocations: 16 kB / 0.986 GB, free: 0.8555 MB / 0.7325 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.000477/0.8175, allocations: 0.7666 MB / 0.9867 GB, free: 60 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001969/0.8177, allocations: 115.3 kB / 0.9868 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.8178, allocations: 0 / 0.9868 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.369e-05/0.8178, allocations: 99.39 kB / 0.9869 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.8181, allocations: 16.11 kB / 0.9869 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000721/0.8189, allocations: 489.6 kB / 0.9874 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.8191, allocations: 0.6926 MB / 0.9881 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 2.85e-05/0.8192, allocations: 4 kB / 0.9881 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.87e-05/0.8192, allocations: 19.36 kB / 0.9881 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of SimCode: time 2.6e-07/0.8192, allocations: 4 kB / 0.9881 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4483/1.267, allocations: 1.594 MB / 0.9897 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002076/1.268, allocations: 187.7 kB / 0.9898 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.602/3.87, allocations: 1 kB / 0.9898 GB, free: 12.83 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat does not exist to compare? outputFormat=mat