Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009912/0.0009914, allocations: 98.03 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.007303/0.007303, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.383/1.383, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.9 MB / 0.6663 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003513, allocations: 8 kB / 0.8159 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.684/0.6843, allocations: 142.4 MB / 0.955 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001434/0.6858, allocations: 1.147 MB / 0.9561 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000723/0.6866, allocations: 432 kB / 0.9566 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.761e-05/0.6866, allocations: 0 / 0.9566 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.811e-05/0.6866, allocations: 0 / 0.9566 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.924e-05/0.6867, allocations: 13.3 kB / 0.9566 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.6869, allocations: 16.19 kB / 0.9566 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.896e-05/0.687, allocations: 50.88 kB / 0.9566 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.6871, allocations: 7.891 kB / 0.9566 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.912e-05/0.6872, allocations: 27.36 kB / 0.9567 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.773e-05/0.6873, allocations: 18.08 kB / 0.9567 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.6873, allocations: 1.312 kB / 0.9567 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.296e-05/0.6873, allocations: 1.969 kB / 0.9567 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.57e-05/0.6874, allocations: 2.531 kB / 0.9567 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.029e-05/0.6874, allocations: 46.84 kB / 0.9567 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.6876, allocations: 34.69 kB / 0.9568 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.6876, allocations: 0 / 0.9568 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.925e-06/0.6876, allocations: 1.406 kB / 0.9568 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.6876, allocations: 0 / 0.9568 GB, free: 6.293 MB / 0.7169 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.0006141/0.6882, allocations: 402.7 kB / 0.9572 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.6883, allocations: 9.469 kB / 0.9572 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.172e-05/0.6883, allocations: 3.531 kB / 0.9572 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.6884, allocations: 175.6 kB / 0.9573 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.6885, allocations: 1.562 kB / 0.9573 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.6885, allocations: 4 kB / 0.9573 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.6886, allocations: 60.98 kB / 0.9574 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.6887, allocations: 5.312 kB / 0.9574 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.6887, allocations: 0 / 0.9574 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.6887, allocations: 1.25 kB / 0.9574 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.135e-05/0.6887, allocations: 17.77 kB / 0.9574 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003769/0.6891, allocations: 277.2 kB / 0.9577 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.586e-05/0.6892, allocations: 44.38 kB / 0.9577 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.811e-05/0.6893, allocations: 21.8 kB / 0.9577 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.6893, allocations: 1.188 kB / 0.9577 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.6895, allocations: 106.9 kB / 0.9578 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.6895, allocations: 0 / 0.9578 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0003191/0.6898, allocations: 140.6 kB / 0.958 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.6899, allocations: 80.36 kB / 0.9581 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.995e-05/0.69, allocations: 119.9 kB / 0.9582 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.69, allocations: 31.2 kB / 0.9582 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.642e-05/0.69, allocations: 85.23 kB / 0.9583 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.6901, allocations: 23.28 kB / 0.9583 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/0.6901, allocations: 17.88 kB / 0.9583 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.284e-05/0.6902, allocations: 323.9 kB / 0.9586 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.312e-05/0.6902, allocations: 12.72 kB / 0.9586 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.807e-05/0.6903, allocations: 41.94 kB / 0.9587 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.583e-05/0.6904, allocations: 113.5 kB / 0.9588 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6904, allocations: 0 / 0.9588 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001546/0.6905, allocations: 122.1 kB / 0.9589 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.534e-05/0.6906, allocations: 35.05 kB / 0.9589 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.6906, allocations: 1.031 kB / 0.9589 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.6906, allocations: 1.188 kB / 0.9589 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.927e-05/0.6907, allocations: 11.58 kB / 0.959 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.6907, allocations: 1.312 kB / 0.959 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.797e-05/0.6907, allocations: 7.156 kB / 0.959 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.719e-06/0.6908, allocations: 2.625 kB / 0.959 GB, free: 4.059 MB / 0.7169 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.837e-05/0.6909, allocations: 151.7 kB / 0.9591 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.528e-05/0.6909, allocations: 8.406 kB / 0.9591 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.6909, allocations: 9.906 kB / 0.9591 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.6909, allocations: 5.531 kB / 0.9591 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.391e-06/0.6909, allocations: 4 kB / 0.9591 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.691, allocations: 3.938 kB / 0.9591 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003516/0.6913, allocations: 400.4 kB / 0.9595 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.6913, allocations: 3.938 kB / 0.9595 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.268e-06/0.6913, allocations: 3.984 kB / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.6913, allocations: 1.75 kB / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.6914, allocations: 1.781 kB / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.6914, allocations: 0 / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.6914, allocations: 1.781 kB / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001942/0.6916, allocations: 245.5 kB / 0.9598 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.731e-05/0.6916, allocations: 81.02 kB / 0.9598 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.6916, allocations: 1.375 kB / 0.9599 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.6917, allocations: 12.23 kB / 0.9599 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/0.6918, allocations: 16.05 kB / 0.9599 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.6918, allocations: 2.75 kB / 0.9599 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.035e-05/0.6919, allocations: 90.16 kB / 0.96 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6919, allocations: 0 / 0.96 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002409/0.6921, allocations: 17.73 kB / 0.96 GB, free: 3.07 MB / 0.7169 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.0001179/0.6922, allocations: 99.75 kB / 0.9601 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002038/0.6925, allocations: 112.5 kB / 0.9602 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.6925, allocations: 0 / 0.9602 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.758e-05/0.6926, allocations: 89.89 kB / 0.9603 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.6929, allocations: 23.33 kB / 0.9603 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005149/0.6934, allocations: 165.3 kB / 0.9605 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001904/0.6936, allocations: 0.6842 MB / 0.9611 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.088e-05/0.6937, allocations: 7.5 kB / 0.9611 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.743e-05/0.6937, allocations: 14.25 kB / 0.9611 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of SimCode: time 3.71e-07/0.6937, allocations: 0 / 0.9611 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of Templates: time 0.003385/0.6971, allocations: 0.769 MB / 0.9619 GB, free: 1.543 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches