Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_11_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.00156/0.00156, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00167/0.00167, allocations: 195.5 kB / 16.53 MB, free: 6.668 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.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.544/2.544, allocations: 469.8 MB / 0.7424 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 67.36 kB / 0.9086 GB, free: 34.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2517, allocations: 159.2 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002378/0.2541, allocations: 1.431 MB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006494/0.2548, allocations: 428.8 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.055e-05/0.2548, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.2549, allocations: 7.938 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.41e-05/0.2549, allocations: 15.91 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000135/0.2551, allocations: 23.92 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.489e-05/0.2552, allocations: 47.86 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.446e-05/0.2553, allocations: 7.984 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.604e-05/0.2553, allocations: 27.84 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.808e-05/0.2554, allocations: 19.92 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.443e-05/0.2554, allocations: 3.938 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.006e-05/0.2554, allocations: 4 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.392e-05/0.2555, allocations: 19.92 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.862e-05/0.2555, allocations: 15.94 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.673e-05/0.2556, allocations: 48.09 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2556, allocations: 0 / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2556, allocations: 0 / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.2556, allocations: 0 / 1.066 GB, free: 12.11 MB / 0.8262 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.0005502/0.2562, allocations: 389.1 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.2562, allocations: 8.031 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.072e-05/0.2563, allocations: 42.73 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.2563, allocations: 8.844 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.2564, allocations: 172.2 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.2564, allocations: 8.375 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.2564, allocations: 384 / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.2566, allocations: 53.8 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2566, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.2566, allocations: 8 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.2566, allocations: 0 / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.877e-05/0.2566, allocations: 15.98 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.257, allocations: 268.8 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.983e-05/0.2571, allocations: 42.52 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.667e-05/0.2571, allocations: 24.97 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.2572, allocations: 0 / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/0.2573, allocations: 109.1 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.223e-06/0.2573, allocations: 0 / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002527/0.2576, allocations: 139.2 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.2577, allocations: 85.11 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.962e-05/0.2578, allocations: 105.8 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.2578, allocations: 33.7 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.316e-05/0.2578, allocations: 80.14 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.2579, allocations: 16.09 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.2579, allocations: 25.7 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.258, allocations: 322.8 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.706e-05/0.2581, allocations: 27.86 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.622e-05/0.2581, allocations: 38.5 kB / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.2582, allocations: 110 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2582, allocations: 0 / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001578/0.2584, allocations: 135.6 kB / 1.068 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.2584, allocations: 29.7 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2585, allocations: 4 kB / 1.068 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/0.2585, allocations: 4 kB / 1.068 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.736e-05/0.2585, allocations: 8 kB / 1.068 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.2585, allocations: 3.984 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.329e-05/0.2586, allocations: 11.92 kB / 1.068 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.2586, allocations: 4 kB / 1.068 GB, free: 9.523 MB / 0.8262 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.0001049/0.2587, allocations: 151.5 kB / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.79e-05/0.2587, allocations: 11.91 kB / 1.068 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.272e-05/0.2588, allocations: 8.359 kB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2588, allocations: 0 / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2588, allocations: 4 kB / 1.069 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.2588, allocations: 0 / 1.069 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003972/0.2592, allocations: 400.1 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.2592, allocations: 0 / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.979e-06/0.2592, allocations: 7.938 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2592, allocations: 0 / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.2592, allocations: 8 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2592, allocations: 3.984 kB / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.2592, allocations: 7.922 kB / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002134/0.2595, allocations: 225.1 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.968e-05/0.2595, allocations: 77.11 kB / 1.069 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.2595, allocations: 4 kB / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.2596, allocations: 16.08 kB / 1.069 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.328e-05/0.2597, allocations: 15.81 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.2597, allocations: 7.984 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.699e-05/0.2598, allocations: 83.28 kB / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2598, allocations: 0 / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00022/0.26, allocations: 19.91 kB / 1.069 GB, free: 8.375 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.0004971/0.2605, allocations: 0.7663 MB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001669/0.2607, allocations: 123.2 kB / 1.07 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.2607, allocations: 0 / 1.07 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.299e-05/0.2608, allocations: 87.39 kB / 1.07 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.261, allocations: 19.92 kB / 1.07 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.2623, allocations: 1.408 MB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.2625, allocations: 0.6846 MB / 1.072 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.507e-05/0.2626, allocations: 4 kB / 1.072 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.702e-05/0.2626, allocations: 19.44 kB / 1.072 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2626, allocations: 4 kB / 1.072 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6372/0.8998, allocations: 1.855 MB / 1.074 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/14.13, allocations: 12.64 kB / 1.074 GB, free: 3.289 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches