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.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.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.006919/0.006919, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001607/0.001607, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.362/2.362, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 67.91 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8193/0.8209, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.00188/0.8228, allocations: 0.665 MB / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001336/0.8242, allocations: 1.043 MB / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.97e-05/0.8243, allocations: 0 / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.402e-05/0.8243, allocations: 9.516 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.409e-05/0.8244, allocations: 4.5 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.8247, allocations: 44.34 kB / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.9e-05/0.8248, allocations: 39.77 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.192e-05/0.8249, allocations: 10.38 kB / 1.089 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.623e-05/0.825, allocations: 20.5 kB / 1.089 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.152e-05/0.8251, allocations: 18.45 kB / 1.089 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.8251, allocations: 3.938 kB / 1.089 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.775e-05/0.8252, allocations: 17.89 kB / 1.089 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.001e-05/0.8252, allocations: 15.8 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.607e-05/0.8252, allocations: 14.92 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.8254, allocations: 59.05 kB / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.8254, allocations: 0 / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8254, allocations: 3.938 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.8254, allocations: 1.062 kB / 1.089 GB, free: 3.957 MB / 0.8575 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.0004701/0.8259, allocations: 359.6 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.8259, allocations: 9.219 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.798e-05/0.8259, allocations: 36.27 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.346e-05/0.826, allocations: 8.703 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.341e-05/0.8261, allocations: 167.6 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.8261, allocations: 1.531 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.8261, allocations: 8.125 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001848/0.8263, allocations: 54.91 kB / 1.09 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.8263, allocations: 8.578 kB / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.8263, allocations: 4 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.8263, allocations: 1.188 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001845/0.8265, allocations: 44.78 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.8269, allocations: 277.1 kB / 1.09 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.8271, allocations: 41.86 kB / 1.09 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.56e-05/0.8272, allocations: 31.09 kB / 1.09 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.8272, allocations: 4.938 kB / 1.09 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001962/0.8274, allocations: 73.08 kB / 1.09 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.603e-06/0.8274, allocations: 0 / 1.09 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0003843/0.8278, allocations: 99.86 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/0.8278, allocations: 56.16 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.735e-05/0.8279, allocations: 107.5 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.8279, allocations: 33.64 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.745e-05/0.828, allocations: 88.34 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.828, allocations: 13.7 kB / 1.091 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/0.828, allocations: 21.17 kB / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.03e-05/0.8281, allocations: 318.7 kB / 1.091 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.8282, allocations: 26.06 kB / 1.091 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.8283, allocations: 49.91 kB / 1.091 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.8285, allocations: 75.09 kB / 1.091 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.8285, allocations: 0 / 1.091 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002624/0.8288, allocations: 99.23 kB / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.8288, allocations: 6.203 kB / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.8288, allocations: 1.188 kB / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.8288, allocations: 5.125 kB / 1.091 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.8289, allocations: 21.58 kB / 1.091 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.829, allocations: 5.938 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.037e-05/0.829, allocations: 7.469 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.8291, allocations: 3.375 kB / 1.091 GB, free: 2.043 MB / 0.8575 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 5.671e-05/0.8291, allocations: 121.7 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.333e-05/0.8291, allocations: 2.672 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002617/0.8294, allocations: 91.38 kB / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.8294, allocations: 5.781 kB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.8294, allocations: 0 / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.8294, allocations: 5.125 kB / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003667/0.8298, allocations: 346 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.8298, allocations: 4.062 kB / 1.092 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.379e-05/0.8299, allocations: 9.781 kB / 1.092 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.8299, allocations: 0 / 1.092 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.8299, allocations: 5.875 kB / 1.092 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.8299, allocations: 0 / 1.092 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.8299, allocations: 1.156 kB / 1.092 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/0.8302, allocations: 183.9 kB / 1.092 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.102e-05/0.8302, allocations: 81.89 kB / 1.092 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.8302, allocations: 5.531 kB / 1.092 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.653e-05/0.8303, allocations: 10.67 kB / 1.092 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.8304, allocations: 7.969 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.8304, allocations: 1.797 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.471e-05/0.8304, allocations: 87.23 kB / 1.092 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8304, allocations: 0 / 1.092 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002555/0.8307, allocations: 13.12 kB / 1.092 GB, free: 1.18 MB / 0.8575 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.0005915/0.8313, allocations: 0.7186 MB / 1.093 GB, free: 16.5 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002771/0.8316, allocations: 57.17 kB / 1.093 GB, free: 16.49 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.8316, allocations: 0.8125 kB / 1.093 GB, free: 16.49 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.8317, allocations: 25.86 kB / 1.093 GB, free: 16.49 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.832, allocations: 15.78 kB / 1.093 GB, free: 16.48 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.8336, allocations: 1.363 MB / 1.095 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.8339, allocations: 0.6819 MB / 1.095 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.933e-05/0.8339, allocations: 7.578 kB / 1.095 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.144e-05/0.834, allocations: 16 kB / 1.095 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of SimCode: time 2.11e-07/0.834, allocations: 3.938 kB / 1.095 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02034/0.8543, allocations: 1.718 MB / 1.097 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/8.683, allocations: 5.516 kB / 1.097 GB, free: 14.09 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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