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: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_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.001143/0.001143, allocations: 108 kB / 15.6 MB, free: 132 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.001098/0.001098, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.176/1.176, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.078/2.078, allocations: 390.2 MB / 0.6647 GB, free: 284 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 67.89 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4915/0.4927, allocations: 140.3 MB / 0.9497 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002182/0.495, allocations: 1.424 MB / 0.9511 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005531/0.4955, allocations: 435.3 kB / 0.9515 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.631e-05/0.4956, allocations: 1.281 kB / 0.9515 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.517e-05/0.4956, allocations: 3.938 kB / 0.9515 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.627e-05/0.4957, allocations: 21.14 kB / 0.9515 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001244/0.4958, allocations: 11.8 kB / 0.9515 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.026e-05/0.4959, allocations: 56.97 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.942e-05/0.496, allocations: 3.656 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.087e-05/0.4961, allocations: 28.36 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.152e-05/0.4961, allocations: 17.42 kB / 0.9516 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.4961, allocations: 4.188 kB / 0.9516 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.112e-05/0.4962, allocations: 2.812 kB / 0.9516 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.93e-05/0.4962, allocations: 9.484 kB / 0.9517 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.8e-05/0.4962, allocations: 23.12 kB / 0.9517 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.407e-05/0.4963, allocations: 45.28 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.4963, allocations: 0 / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4963, allocations: 0 / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.4963, allocations: 0 / 0.9517 GB, free: 7.594 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.000446/0.4968, allocations: 391.9 kB / 0.9521 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.4968, allocations: 17.48 kB / 0.9521 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.163e-05/0.4969, allocations: 36.66 kB / 0.9521 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.72e-05/0.4969, allocations: 3.156 kB / 0.9522 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.01e-05/0.497, allocations: 171.4 kB / 0.9523 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.497, allocations: 2.531 kB / 0.9523 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.497, allocations: 7.312 kB / 0.9523 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.76e-05/0.4971, allocations: 57.39 kB / 0.9524 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.4971, allocations: 0 / 0.9524 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.4971, allocations: 1.031 kB / 0.9524 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.4971, allocations: 1.031 kB / 0.9524 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.683e-05/0.4972, allocations: 21.48 kB / 0.9524 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002811/0.4975, allocations: 280.8 kB / 0.9527 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.919e-05/0.4976, allocations: 41.16 kB / 0.9527 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.997e-05/0.4976, allocations: 21.98 kB / 0.9527 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.4976, allocations: 0 / 0.9527 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/0.4978, allocations: 112.2 kB / 0.9528 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.4978, allocations: 0 / 0.9528 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002237/0.498, allocations: 141.4 kB / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.498, allocations: 79.48 kB / 0.953 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.444e-05/0.4981, allocations: 111.9 kB / 0.9532 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.035e-05/0.4981, allocations: 31.02 kB / 0.9532 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.364e-05/0.4981, allocations: 85.27 kB / 0.9533 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.4982, allocations: 19.59 kB / 0.9533 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.342e-05/0.4982, allocations: 33.45 kB / 0.9533 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.565e-05/0.4982, allocations: 317.2 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.007e-05/0.4983, allocations: 20.7 kB / 0.9536 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.391e-05/0.4983, allocations: 33.53 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.407e-05/0.4984, allocations: 109.8 kB / 0.9538 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.4984, allocations: 4 kB / 0.9538 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001261/0.4985, allocations: 126.9 kB / 0.9539 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4986, allocations: 31.55 kB / 0.9539 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.4986, allocations: 0 / 0.9539 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.4986, allocations: 5.453 kB / 0.9539 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.66e-05/0.4986, allocations: 4.031 kB / 0.9539 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.4986, allocations: 3.984 kB / 0.9539 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.075e-05/0.4987, allocations: 17.73 kB / 0.954 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.4987, allocations: 6.625 kB / 0.954 GB, free: 5.309 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 6.394e-05/0.4988, allocations: 157.2 kB / 0.9541 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.4988, allocations: 12.08 kB / 0.9541 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.206e-05/0.4988, allocations: 5.469 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.4988, allocations: 1.469 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4988, allocations: 0 / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.4988, allocations: 0 / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.4991, allocations: 412.4 kB / 0.9545 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4991, allocations: 0 / 0.9545 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.875e-06/0.4991, allocations: 5.594 kB / 0.9545 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4991, allocations: 0 / 0.9545 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.4991, allocations: 5.172 kB / 0.9545 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4992, allocations: 1.688 kB / 0.9545 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4992, allocations: 3.938 kB / 0.9545 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.4993, allocations: 229.2 kB / 0.9548 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.784e-05/0.4993, allocations: 82.14 kB / 0.9548 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.4994, allocations: 6.469 kB / 0.9548 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.73e-05/0.4995, allocations: 12.83 kB / 0.9549 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.973e-05/0.4995, allocations: 7.406 kB / 0.9549 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.4995, allocations: 7.578 kB / 0.9549 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.601e-05/0.4996, allocations: 90.11 kB / 0.955 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.4996, allocations: 0 / 0.955 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002203/0.4998, allocations: 17.59 kB / 0.955 GB, free: 4.324 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.0002861/0.5001, allocations: 0.7678 MB / 0.9557 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001371/0.5002, allocations: 112.9 kB / 0.9558 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.5002, allocations: 0 / 0.9558 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.111e-05/0.5003, allocations: 89.05 kB / 0.9559 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.5006, allocations: 19.67 kB / 0.9559 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000863/0.5014, allocations: 1.418 MB / 0.9573 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.32e-05/0.5015, allocations: 0.6907 MB / 0.958 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.553e-05/0.5016, allocations: 3.469 kB / 0.958 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.252e-05/0.5016, allocations: 27.12 kB / 0.958 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.5016, allocations: 0 / 0.958 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01589/0.5175, allocations: 1.857 MB / 0.9598 GB, free: 324 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.429/6.947, allocations: 5.312 kB / 0.9598 GB, free: 320 kB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > 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