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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008875/0.0008878, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005568/0.005568, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.214/1.214, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.497/2.497, allocations: 462.6 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003377, allocations: 12.66 kB / 0.9029 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2823, allocations: 159.6 MB / 1.059 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001382/0.2837, allocations: 1.155 MB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006426/0.2844, allocations: 434.9 kB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.019e-05/0.2844, allocations: 4 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.627e-05/0.2845, allocations: 0 / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.108e-05/0.2845, allocations: 3.938 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001293/0.2847, allocations: 19.97 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.313e-05/0.2847, allocations: 43.86 kB / 1.06 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.926e-05/0.2848, allocations: 15.98 kB / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.266e-05/0.2849, allocations: 19.88 kB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.541e-05/0.285, allocations: 11.92 kB / 1.06 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.739e-05/0.285, allocations: 4 kB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.228e-06/0.285, allocations: 0 / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.422e-05/0.285, allocations: 15.91 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.111e-05/0.2851, allocations: 41.64 kB / 1.06 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.641e-05/0.2852, allocations: 44.03 kB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2852, allocations: 0 / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2852, allocations: 0 / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.2852, allocations: 4 kB / 1.061 GB, free: 3.074 MB / 0.8106 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.0005017/0.2857, allocations: 385.1 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2857, allocations: 11.97 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.289e-05/0.2858, allocations: 38.75 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.329e-05/0.2858, allocations: 4.844 kB / 1.061 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.2859, allocations: 180.2 kB / 1.061 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.2859, allocations: 4.375 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.286, allocations: 384 / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.2861, allocations: 57.8 kB / 1.061 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.769e-06/0.2861, allocations: 0 / 1.061 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.2861, allocations: 0 / 1.061 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.2861, allocations: 4 kB / 1.061 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.775e-05/0.2862, allocations: 15.98 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000332/0.2865, allocations: 276.8 kB / 1.061 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.005e-05/0.2866, allocations: 42.56 kB / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.353e-05/0.2866, allocations: 16.98 kB / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.2866, allocations: 0 / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/0.2868, allocations: 109 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.2868, allocations: 3.938 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002347/0.2871, allocations: 135.5 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.2871, allocations: 85.09 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.049e-05/0.2872, allocations: 118 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.2872, allocations: 29.7 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.2873, allocations: 84.14 kB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.2873, allocations: 19.8 kB / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.2873, allocations: 13.72 kB / 1.062 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.432e-05/0.2874, allocations: 322.8 kB / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.862e-05/0.2875, allocations: 16 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.737e-05/0.2875, allocations: 46.72 kB / 1.062 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.748e-05/0.2876, allocations: 118.1 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2876, allocations: 3.938 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001394/0.2878, allocations: 127.2 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.2878, allocations: 29.77 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.2878, allocations: 8 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.543e-06/0.2878, allocations: 0 / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.719e-05/0.2879, allocations: 8.062 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.2879, allocations: 3.984 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.06e-05/0.2879, allocations: 11.94 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.2879, allocations: 0 / 1.063 GB, free: 0.4922 MB / 0.8106 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 9.148e-05/0.288, allocations: 155.5 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.2881, allocations: 12 kB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.627e-05/0.2881, allocations: 12.31 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.2881, allocations: 0 / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.2881, allocations: 0 / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2881, allocations: 3.984 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003435/0.2885, allocations: 400.1 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2885, allocations: 0 / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.863e-06/0.2885, allocations: 0 / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2885, allocations: 3.984 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.2885, allocations: 8 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2885, allocations: 4 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2885, allocations: 3.938 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001794/0.2887, allocations: 229.1 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.26e-05/0.2888, allocations: 81.02 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.2888, allocations: 4 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.2889, allocations: 15.98 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.219e-05/0.2889, allocations: 15.92 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.2889, allocations: 4 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.895e-05/0.289, allocations: 83.28 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.289, allocations: 0 / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00022/0.2892, allocations: 19.94 kB / 1.064 GB, free: 15.34 MB / 0.8262 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.0004317/0.2897, allocations: 0.7702 MB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001588/0.2898, allocations: 115.3 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2898, allocations: 0 / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.28e-05/0.2899, allocations: 91.33 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.2902, allocations: 19.92 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.2914, allocations: 1.427 MB / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.2917, allocations: 0.6848 MB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.709e-05/0.2917, allocations: 7.984 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.503e-05/0.2917, allocations: 11.44 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.2917, allocations: 0 / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01284/0.3046, allocations: 1.606 MB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/0.3048, allocations: 205.1 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/1.989, allocations: 0 / 1.069 GB, free: 10.3 MB / 0.8262 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/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) diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches