Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.0008948/0.0008948, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.005682/0.005682, allocations: 170.4 kB / 16.26 MB, free: 6.613 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.326/1.326, 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.2-maint.9.1.x/package.mo): time 2.283/2.283, allocations: 390.9 MB / 0.6664 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003041, allocations: 15.98 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6708/0.6712, allocations: 142.4 MB / 0.9552 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008566/0.6721, allocations: 399.8 kB / 0.9556 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.6733, allocations: 1.04 MB / 0.9566 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.963e-05/0.6733, allocations: 0 / 0.9566 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.6733, allocations: 0.9688 kB / 0.9566 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.725e-05/0.6734, allocations: 3.938 kB / 0.9566 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.6736, allocations: 33 kB / 0.9566 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.061e-05/0.6737, allocations: 41.33 kB / 0.9567 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.667e-05/0.6738, allocations: 16.17 kB / 0.9567 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.53e-05/0.6739, allocations: 9.953 kB / 0.9567 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.215e-05/0.6739, allocations: 25.22 kB / 0.9567 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.674, allocations: 2.25 kB / 0.9567 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.079e-05/0.674, allocations: 16.2 kB / 0.9567 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.359e-05/0.674, allocations: 5.281 kB / 0.9567 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.866e-05/0.6741, allocations: 46.2 kB / 0.9568 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.6742, allocations: 43.08 kB / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.6742, allocations: 0 / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.904e-06/0.6742, allocations: 5 kB / 0.9568 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.487e-06/0.6742, allocations: 0 / 0.9568 GB, free: 6.453 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004366/0.6747, allocations: 353.9 kB / 0.9572 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.6747, allocations: 13.88 kB / 0.9572 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.517e-05/0.6748, allocations: 35.72 kB / 0.9572 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.846e-05/0.6748, allocations: 7.25 kB / 0.9572 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.6e-05/0.6749, allocations: 166.6 kB / 0.9574 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.6749, allocations: 5.438 kB / 0.9574 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.6749, allocations: 3 kB / 0.9574 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.6751, allocations: 67.11 kB / 0.9574 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.6752, allocations: 3.938 kB / 0.9574 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.6752, allocations: 0.9688 kB / 0.9574 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.6752, allocations: 0.9375 kB / 0.9574 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.6754, allocations: 54.58 kB / 0.9575 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003482/0.6757, allocations: 284.9 kB / 0.9578 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.6759, allocations: 52.97 kB / 0.9578 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.785e-05/0.676, allocations: 32.58 kB / 0.9578 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.676, allocations: 1.062 kB / 0.9578 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.6762, allocations: 75.92 kB / 0.9579 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.312e-06/0.6762, allocations: 3.938 kB / 0.9579 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0003937/0.6766, allocations: 125.1 kB / 0.958 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.6767, allocations: 52.59 kB / 0.9581 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.616e-05/0.6767, allocations: 107.3 kB / 0.9582 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.6767, allocations: 25.7 kB / 0.9582 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.036e-05/0.6768, allocations: 94.23 kB / 0.9583 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.6768, allocations: 5.438 kB / 0.9583 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.503e-05/0.6768, allocations: 16.03 kB / 0.9583 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.941e-05/0.6769, allocations: 324.1 kB / 0.9586 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.906e-05/0.677, allocations: 26.36 kB / 0.9587 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.6771, allocations: 59.53 kB / 0.9587 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.6773, allocations: 81.64 kB / 0.9588 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6773, allocations: 11.88 kB / 0.9588 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002466/0.6776, allocations: 107.6 kB / 0.9589 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.6776, allocations: 4.719 kB / 0.9589 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.6776, allocations: 1.656 kB / 0.9589 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.6776, allocations: 6.562 kB / 0.9589 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.6777, allocations: 19.11 kB / 0.9589 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.6777, allocations: 2.375 kB / 0.9589 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.655e-05/0.6778, allocations: 11.55 kB / 0.959 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.6778, allocations: 1.469 kB / 0.959 GB, free: 4.395 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.671e-05/0.6779, allocations: 122.1 kB / 0.9591 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.6779, allocations: 5.656 kB / 0.9591 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002627/0.6782, allocations: 102.9 kB / 0.9592 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.6782, allocations: 5.891 kB / 0.9592 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.6782, allocations: 0 / 0.9592 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.6782, allocations: 0 / 0.9592 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003514/0.6786, allocations: 362.5 kB / 0.9595 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6786, allocations: 384 / 0.9595 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.6787, allocations: 9.188 kB / 0.9595 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.6787, allocations: 4 kB / 0.9595 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.6787, allocations: 9.359 kB / 0.9596 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.6787, allocations: 0 / 0.9596 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6787, allocations: 3.984 kB / 0.9596 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.6789, allocations: 195.4 kB / 0.9597 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.108e-05/0.679, allocations: 82.39 kB / 0.9598 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.679, allocations: 5.375 kB / 0.9598 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.978e-05/0.6791, allocations: 10.86 kB / 0.9598 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.03e-05/0.6791, allocations: 13.23 kB / 0.9598 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.6791, allocations: 1.375 kB / 0.9599 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.313e-05/0.6792, allocations: 84.78 kB / 0.9599 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2e-07/0.6792, allocations: 0 / 0.9599 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000232/0.6794, allocations: 9.625 kB / 0.9599 GB, free: 3.457 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004234/0.6798, allocations: 0.7274 MB / 0.9607 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002316/0.6801, allocations: 66.52 kB / 0.9607 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.6801, allocations: 1.375 kB / 0.9607 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.6802, allocations: 40.78 kB / 0.9608 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.6804, allocations: 13.56 kB / 0.9608 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.6818, allocations: 1.394 MB / 0.9621 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.6819, allocations: 0.6798 MB / 0.9628 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.901e-05/0.6819, allocations: 4.125 kB / 0.9628 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.682, allocations: 12.81 kB / 0.9628 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.682, allocations: 5.375 kB / 0.9628 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01274/0.6947, allocations: 1.438 MB / 0.9642 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.695, allocations: 197.5 kB / 0.9644 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.505, allocations: 0 / 0.9644 GB, free: 15.74 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches