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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001402/0.001402, allocations: 100.1 kB / 15.88 MB, free: 12 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.001638/0.001638, allocations: 200 kB / 16.79 MB, free: 6.828 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.472/1.472, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.361/2.361, allocations: 390.2 MB / 0.6649 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 63.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7099/0.7114, allocations: 140.3 MB / 0.9496 GB, free: 9.363 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002848/0.7143, allocations: 1.489 MB / 0.951 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008161/0.7152, allocations: 432.7 kB / 0.9514 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.559e-05/0.7152, allocations: 0.9688 kB / 0.9514 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.448e-05/0.7153, allocations: 7.922 kB / 0.9514 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.068e-05/0.7154, allocations: 8.891 kB / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.7156, allocations: 20.33 kB / 0.9515 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.605e-05/0.7157, allocations: 43.36 kB / 0.9515 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.497e-05/0.7158, allocations: 8.344 kB / 0.9515 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.084e-05/0.7159, allocations: 20.2 kB / 0.9515 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.819e-05/0.716, allocations: 20.88 kB / 0.9516 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.716, allocations: 1.688 kB / 0.9516 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.324e-05/0.716, allocations: 6.438 kB / 0.9516 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.645e-05/0.716, allocations: 9.016 kB / 0.9516 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.036e-05/0.7161, allocations: 19.48 kB / 0.9516 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.433e-05/0.7162, allocations: 27.36 kB / 0.9516 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.7162, allocations: 0 / 0.9516 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.81e-07/0.7162, allocations: 0 / 0.9516 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.457e-06/0.7162, allocations: 4 kB / 0.9516 GB, free: 7.727 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.0005604/0.7168, allocations: 400.4 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.7168, allocations: 9.031 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.7169, allocations: 4.375 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.077e-05/0.717, allocations: 178.4 kB / 0.9522 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.717, allocations: 6.312 kB / 0.9522 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.717, allocations: 3.75 kB / 0.9522 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.7171, allocations: 57.12 kB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.7172, allocations: 0 / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.7172, allocations: 1.469 kB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.7172, allocations: 3.938 kB / 0.9522 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.515e-05/0.7172, allocations: 18.73 kB / 0.9523 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003714/0.7176, allocations: 273 kB / 0.9525 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.211e-05/0.7177, allocations: 44.5 kB / 0.9526 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.461e-05/0.7178, allocations: 17.45 kB / 0.9526 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.7178, allocations: 1.594 kB / 0.9526 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001727/0.718, allocations: 113.4 kB / 0.9527 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.718, allocations: 1.094 kB / 0.9527 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002786/0.7183, allocations: 140.2 kB / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.7183, allocations: 80.05 kB / 0.9529 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.24e-05/0.7184, allocations: 114.9 kB / 0.953 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.7184, allocations: 28.2 kB / 0.953 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.538e-05/0.7184, allocations: 89.39 kB / 0.9531 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.7185, allocations: 14.39 kB / 0.9531 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.017e-05/0.7185, allocations: 26.25 kB / 0.9532 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.378e-05/0.7186, allocations: 325.8 kB / 0.9535 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.622e-05/0.7186, allocations: 11.34 kB / 0.9535 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.363e-05/0.7187, allocations: 46.72 kB / 0.9535 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.288e-05/0.7188, allocations: 113.2 kB / 0.9536 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.7188, allocations: 0 / 0.9536 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001561/0.7189, allocations: 121.3 kB / 0.9538 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.113e-05/0.719, allocations: 32.42 kB / 0.9538 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.719, allocations: 1.094 kB / 0.9538 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.719, allocations: 5.156 kB / 0.9538 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.677e-05/0.7191, allocations: 10.39 kB / 0.9538 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.7191, allocations: 2.125 kB / 0.9538 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.364e-05/0.7192, allocations: 12.31 kB / 0.9538 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.7192, allocations: 7.094 kB / 0.9538 GB, free: 5.484 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 8.882e-05/0.7193, allocations: 155.8 kB / 0.954 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.7193, allocations: 2.625 kB / 0.954 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488e-05/0.7193, allocations: 9.906 kB / 0.954 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.7194, allocations: 1.281 kB / 0.954 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.7194, allocations: 4 kB / 0.954 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.7194, allocations: 1.5 kB / 0.954 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003508/0.7197, allocations: 398.8 kB / 0.9544 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.7197, allocations: 3.938 kB / 0.9544 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.547e-06/0.7198, allocations: 5.422 kB / 0.9544 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.7198, allocations: 1.219 kB / 0.9544 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.7198, allocations: 1.125 kB / 0.9544 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.7198, allocations: 1.406 kB / 0.9544 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.7198, allocations: 0 / 0.9544 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.72, allocations: 241.4 kB / 0.9546 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.72, allocations: 90.53 kB / 0.9547 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.7201, allocations: 1.531 kB / 0.9547 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.7202, allocations: 9.109 kB / 0.9547 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.7202, allocations: 12.02 kB / 0.9547 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.7203, allocations: 6.969 kB / 0.9547 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.613e-05/0.7203, allocations: 91.09 kB / 0.9548 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7203, allocations: 0 / 0.9548 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002463/0.7206, allocations: 16.56 kB / 0.9548 GB, free: 4.5 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.0001024/0.7207, allocations: 97.06 kB / 0.9549 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001795/0.7208, allocations: 116.2 kB / 0.955 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.7209, allocations: 0 / 0.955 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.381e-05/0.7209, allocations: 90.23 kB / 0.9551 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.7213, allocations: 21.89 kB / 0.9551 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003827/0.7217, allocations: 194.1 kB / 0.9553 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.7218, allocations: 0.6836 MB / 0.956 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.02e-05/0.7219, allocations: 15.48 kB / 0.956 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.7219, allocations: 0 / 0.956 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of Templates: time 0.00292/0.7248, allocations: 0.8879 MB / 0.9569 GB, free: 2.879 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches