Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.001668/0.001668, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002347/0.002347, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.418/1.418, allocations: 222.9 MB / 239.9 MB, free: 4.496 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.422/2.422, allocations: 390.2 MB / 0.6644 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 60.09 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.65/0.6516, allocations: 140.4 MB / 0.9492 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001689/0.6533, allocations: 0.729 MB / 0.95 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.6544, allocations: 1.055 MB / 0.951 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.59e-05/0.6544, allocations: 0 / 0.951 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.156e-05/0.6545, allocations: 0 / 0.951 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.772e-05/0.6545, allocations: 9.297 kB / 0.951 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002474/0.6548, allocations: 41.47 kB / 0.951 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.925e-05/0.6548, allocations: 52.47 kB / 0.9511 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.794e-05/0.6549, allocations: 9.484 kB / 0.9511 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.099e-05/0.655, allocations: 24.23 kB / 0.9511 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.477e-05/0.6551, allocations: 21.36 kB / 0.9511 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.6551, allocations: 5.5 kB / 0.9511 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.903e-05/0.6551, allocations: 25.53 kB / 0.9512 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.6552, allocations: 10.73 kB / 0.9512 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.954e-05/0.6552, allocations: 21.38 kB / 0.9512 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.6553, allocations: 61.58 kB / 0.9513 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.6553, allocations: 0 / 0.9513 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6553, allocations: 0 / 0.9513 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.6553, allocations: 1.375 kB / 0.9513 GB, free: 7.555 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004796/0.6558, allocations: 370.6 kB / 0.9516 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.6559, allocations: 9.375 kB / 0.9516 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.59e-05/0.6559, allocations: 36.2 kB / 0.9517 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.894e-05/0.6559, allocations: 3.844 kB / 0.9517 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.126e-05/0.656, allocations: 161.6 kB / 0.9518 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.656, allocations: 7.281 kB / 0.9518 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.656, allocations: 3.344 kB / 0.9518 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.6562, allocations: 72.81 kB / 0.9519 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.6562, allocations: 3.938 kB / 0.9519 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.6563, allocations: 0 / 0.9519 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.6563, allocations: 1.156 kB / 0.9519 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.6565, allocations: 43.67 kB / 0.9519 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003465/0.6568, allocations: 287.6 kB / 0.9522 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.657, allocations: 57.83 kB / 0.9523 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.71e-05/0.6571, allocations: 32.34 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.6571, allocations: 3.938 kB / 0.9523 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001825/0.6573, allocations: 78.81 kB / 0.9524 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.6573, allocations: 0 / 0.9524 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003879/0.6577, allocations: 120.9 kB / 0.9525 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/0.6577, allocations: 58.06 kB / 0.9526 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.909e-05/0.6578, allocations: 108.8 kB / 0.9527 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.6578, allocations: 27.14 kB / 0.9527 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.548e-05/0.6579, allocations: 97.47 kB / 0.9528 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.6579, allocations: 18.44 kB / 0.9528 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.6579, allocations: 24.61 kB / 0.9528 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.984e-05/0.658, allocations: 320.2 kB / 0.9531 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.74e-05/0.6581, allocations: 27 kB / 0.9531 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.6582, allocations: 62.64 kB / 0.9532 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.6584, allocations: 90.7 kB / 0.9533 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.6584, allocations: 0 / 0.9533 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002488/0.6586, allocations: 118.2 kB / 0.9534 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.6587, allocations: 5.188 kB / 0.9534 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.6587, allocations: 5.172 kB / 0.9534 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.6587, allocations: 2.125 kB / 0.9534 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.6588, allocations: 24.59 kB / 0.9534 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.6588, allocations: 5.375 kB / 0.9534 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.87e-05/0.6589, allocations: 5.25 kB / 0.9535 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.6589, allocations: 7.5 kB / 0.9535 GB, free: 5.422 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.51e-05/0.659, allocations: 122.5 kB / 0.9536 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.659, allocations: 5.625 kB / 0.9536 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002639/0.6593, allocations: 110.8 kB / 0.9537 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.6593, allocations: 1.312 kB / 0.9537 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.6593, allocations: 0 / 0.9537 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.6593, allocations: 1.188 kB / 0.9537 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003506/0.6596, allocations: 363.4 kB / 0.954 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.6597, allocations: 0 / 0.954 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.155e-05/0.6597, allocations: 11.98 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.6597, allocations: 0 / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.6597, allocations: 1.125 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.6597, allocations: 5.062 kB / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.6598, allocations: 0 / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002382/0.66, allocations: 206.5 kB / 0.9543 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.671e-05/0.66, allocations: 79.86 kB / 0.9543 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.66, allocations: 1.531 kB / 0.9543 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.6602, allocations: 8.516 kB / 0.9543 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.6602, allocations: 10.8 kB / 0.9543 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.6602, allocations: 9.406 kB / 0.9544 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.315e-05/0.6602, allocations: 84.31 kB / 0.9544 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6603, allocations: 0 / 0.9544 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000263/0.6605, allocations: 24.36 kB / 0.9545 GB, free: 4.473 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.000437/0.661, allocations: 0.7357 MB / 0.9552 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002478/0.6612, allocations: 69.31 kB / 0.9552 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.6612, allocations: 0 / 0.9552 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.6613, allocations: 41.08 kB / 0.9553 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.6616, allocations: 15.31 kB / 0.9553 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.6629, allocations: 1.427 MB / 0.9567 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.822e-05/0.663, allocations: 0.6887 MB / 0.9574 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.516e-05/0.663, allocations: 4.125 kB / 0.9574 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.651e-05/0.6631, allocations: 14.62 kB / 0.9574 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6631, allocations: 0 / 0.9574 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01181/0.6749, allocations: 1.643 MB / 0.959 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/0.6751, allocations: 212.3 kB / 0.9592 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.418, allocations: 3.75 kB / 0.9592 GB, free: 0.543 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches