Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_10_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.007118/0.007118, allocations: 97.56 kB / 15.73 MB, free: 6.055 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.001644/0.001644, allocations: 194.8 kB / 16.67 MB, free: 5.977 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.595/2.595, allocations: 437.1 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2789, allocations: 151.6 MB / 1.166 GB, free: 7.344 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002543/0.2815, allocations: 1.438 MB / 1.168 GB, free: 5.891 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007512/0.2822, allocations: 431 kB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.351e-05/0.2823, allocations: 3.938 kB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.252e-05/0.2824, allocations: 7.922 kB / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.437e-05/0.2825, allocations: 7.938 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.2826, allocations: 27.91 kB / 1.168 GB, free: 5.418 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000125/0.2828, allocations: 55.78 kB / 1.168 GB, free: 5.363 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.902e-05/0.2828, allocations: 4 kB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.8e-05/0.2829, allocations: 23.86 kB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.114e-05/0.283, allocations: 19.92 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.899e-05/0.283, allocations: 4 kB / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.232e-05/0.283, allocations: 4 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.333e-05/0.2831, allocations: 8 kB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.672e-05/0.2831, allocations: 31.84 kB / 1.168 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.2832, allocations: 40.11 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2832, allocations: 0 / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2832, allocations: 0 / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.2833, allocations: 0 / 1.168 GB, free: 5.23 MB / 0.92 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.0005808/0.2838, allocations: 389 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.2839, allocations: 16.03 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.537e-05/0.2839, allocations: 34.73 kB / 1.169 GB, free: 4.738 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.284, allocations: 8.891 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.2841, allocations: 176.2 kB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.2841, allocations: 4.375 kB / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.2841, allocations: 4.375 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.2843, allocations: 57.78 kB / 1.169 GB, free: 4.449 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.2843, allocations: 0 / 1.169 GB, free: 4.449 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.2843, allocations: 4 kB / 1.169 GB, free: 4.445 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2843, allocations: 0 / 1.169 GB, free: 4.445 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.29e-05/0.2844, allocations: 16 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003757/0.2848, allocations: 280.7 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 7.949e-05/0.2849, allocations: 34.58 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.062e-05/0.2849, allocations: 24.97 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.2849, allocations: 4 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.2851, allocations: 97.09 kB / 1.169 GB, free: 3.918 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.2851, allocations: 0 / 1.169 GB, free: 3.918 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0002827/0.2854, allocations: 143.2 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.2855, allocations: 89.17 kB / 1.169 GB, free: 3.66 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.077e-05/0.2856, allocations: 113.8 kB / 1.17 GB, free: 3.539 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.2856, allocations: 29.7 kB / 1.17 GB, free: 3.504 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.005e-05/0.2857, allocations: 84.08 kB / 1.17 GB, free: 3.418 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.2857, allocations: 19.84 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.2857, allocations: 25.7 kB / 1.17 GB, free: 3.367 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.343e-05/0.2858, allocations: 326.8 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.702e-05/0.2859, allocations: 15.98 kB / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.113e-05/0.2859, allocations: 38.56 kB / 1.17 GB, free: 2.977 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.286, allocations: 114.3 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.2861, allocations: 0 / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00016/0.2862, allocations: 127.3 kB / 1.17 GB, free: 2.707 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.2863, allocations: 37.69 kB / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2863, allocations: 0 / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.2863, allocations: 0 / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.276e-05/0.2863, allocations: 4 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2863, allocations: 0 / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.248e-05/0.2864, allocations: 11.98 kB / 1.17 GB, free: 2.648 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-06/0.2864, allocations: 3.938 kB / 1.17 GB, free: 2.645 MB / 0.92 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.0001044/0.2865, allocations: 161.7 kB / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.993e-05/0.2866, allocations: 11.94 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.2866, allocations: 12.36 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2866, allocations: 3.938 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2866, allocations: 0 / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2866, allocations: 0 / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.287, allocations: 396.2 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.287, allocations: 4.062 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.265e-06/0.287, allocations: 0 / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.287, allocations: 4 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.2871, allocations: 8 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2871, allocations: 0 / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2871, allocations: 4.312 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.2873, allocations: 233.1 kB / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.2873, allocations: 89.05 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.2874, allocations: 0 / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.2875, allocations: 15.98 kB / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/0.2875, allocations: 11.92 kB / 1.171 GB, free: 1.594 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.2875, allocations: 4 kB / 1.171 GB, free: 1.59 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.564e-05/0.2876, allocations: 91.27 kB / 1.171 GB, free: 1.5 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2876, allocations: 0 / 1.171 GB, free: 1.5 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002422/0.2878, allocations: 12 kB / 1.171 GB, free: 1.488 MB / 0.92 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.0004791/0.2883, allocations: 0.7688 MB / 1.172 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000176/0.2885, allocations: 115.3 kB / 1.172 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2885, allocations: 0 / 1.172 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.054e-05/0.2886, allocations: 87.39 kB / 1.172 GB, free: 476 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.2889, allocations: 17.91 kB / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.2902, allocations: 1.432 MB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.2904, allocations: 0.6887 MB / 1.174 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.119e-05/0.2905, allocations: 4 kB / 1.174 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.2905, allocations: 23.36 kB / 1.174 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.2905, allocations: 0 / 1.174 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.3084, allocations: 1.873 MB / 1.176 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.714/8.022, allocations: 16.86 kB / 1.176 GB, free: 12.37 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches