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.001325/0.001325, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001453/0.001453, allocations: 194.7 kB / 16.14 MB, free: 6.57 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.213/1.213, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.35/2.35, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 62.42 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2408, allocations: 157.4 MB / 1.052 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002499/0.2433, allocations: 1.488 MB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006662/0.244, allocations: 446.9 kB / 1.054 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.103e-05/0.244, allocations: 0 / 1.054 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.79e-05/0.2441, allocations: 0 / 1.054 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.842e-05/0.2442, allocations: 11.91 kB / 1.054 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001345/0.2443, allocations: 16 kB / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.4e-05/0.2444, allocations: 55.78 kB / 1.054 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.465e-05/0.2445, allocations: 4 kB / 1.054 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.322e-05/0.2445, allocations: 19.92 kB / 1.054 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.345e-05/0.2446, allocations: 23.84 kB / 1.054 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.2446, allocations: 4 kB / 1.054 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.245e-05/0.2446, allocations: 4 kB / 1.054 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.83e-05/0.2447, allocations: 4 kB / 1.054 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.44e-05/0.2447, allocations: 23.86 kB / 1.054 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.863e-05/0.2448, allocations: 32.17 kB / 1.054 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2448, allocations: 0 / 1.054 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2448, allocations: 4 kB / 1.054 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.556e-06/0.2448, allocations: 0 / 1.054 GB, free: 6.105 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.0005141/0.2453, allocations: 389.1 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2454, allocations: 11.97 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.2454, allocations: 46.62 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.817e-05/0.2454, allocations: 4.844 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.2456, allocations: 176.3 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.2456, allocations: 8.375 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-06/0.2456, allocations: 384 / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.2457, allocations: 53.81 kB / 1.055 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.501e-06/0.2457, allocations: 0 / 1.055 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.2457, allocations: 7.984 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.2457, allocations: 0 / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.115e-05/0.2458, allocations: 19.94 kB / 1.055 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003577/0.2462, allocations: 268.8 kB / 1.055 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.927e-05/0.2463, allocations: 46.56 kB / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.48e-05/0.2463, allocations: 20.97 kB / 1.055 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.2463, allocations: 4 kB / 1.055 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001637/0.2465, allocations: 101 kB / 1.055 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.2465, allocations: 0 / 1.055 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002548/0.2468, allocations: 139.3 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/0.2468, allocations: 92.98 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.345e-05/0.2469, allocations: 109.8 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.2469, allocations: 25.7 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.086e-05/0.247, allocations: 92.12 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.247, allocations: 15.81 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.247, allocations: 21.72 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.2471, allocations: 322.8 kB / 1.056 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.131e-05/0.2472, allocations: 12 kB / 1.056 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.354e-05/0.2472, allocations: 42.56 kB / 1.056 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.951e-05/0.2473, allocations: 113.9 kB / 1.056 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2473, allocations: 0 / 1.056 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001417/0.2475, allocations: 127.2 kB / 1.056 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/0.2475, allocations: 34.06 kB / 1.056 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2475, allocations: 8.062 kB / 1.056 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2476, allocations: 0 / 1.056 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.719e-05/0.2476, allocations: 4 kB / 1.056 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.2476, allocations: 3.938 kB / 1.056 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.097e-05/0.2477, allocations: 11.94 kB / 1.056 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.2477, allocations: 4 kB / 1.056 GB, free: 3.516 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.069e-05/0.2478, allocations: 157.4 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.548e-05/0.2478, allocations: 7.906 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.033e-05/0.2478, allocations: 12.38 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.2478, allocations: 0 / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2479, allocations: 4 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2479, allocations: 7.969 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.2482, allocations: 400.2 kB / 1.057 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2482, allocations: 4 kB / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-06/0.2482, allocations: 0 / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2482, allocations: 0 / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.2483, allocations: 0 / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.2483, allocations: 4 kB / 1.057 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.2483, allocations: 7.938 kB / 1.057 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.2485, allocations: 233.1 kB / 1.057 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.103e-05/0.2485, allocations: 81.05 kB / 1.057 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.2485, allocations: 7.984 kB / 1.057 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.473e-05/0.2486, allocations: 4 kB / 1.057 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.2487, allocations: 15.92 kB / 1.057 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.2487, allocations: 4 kB / 1.057 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.598e-05/0.2487, allocations: 91.27 kB / 1.057 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2488, allocations: 0 / 1.057 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002157/0.249, allocations: 16 kB / 1.058 GB, free: 2.363 MB / 0.8106 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.0004356/0.2494, allocations: 0.7669 MB / 1.058 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001506/0.2496, allocations: 119.3 kB / 1.058 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2496, allocations: 0 / 1.058 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.23e-05/0.2497, allocations: 95.38 kB / 1.058 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.2499, allocations: 15.94 kB / 1.058 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.2511, allocations: 1.425 MB / 1.06 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.2513, allocations: 0.6888 MB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.703e-05/0.2513, allocations: 4 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.2514, allocations: 15.42 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.2514, allocations: 4 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7567/1.008, allocations: 1.659 MB / 1.062 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/1.008, allocations: 204.5 kB / 1.062 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.567/2.576, allocations: 3.938 kB / 1.062 GB, free: 13.23 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