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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 104.7 kB / 16.41 MB, free: 6.508 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.001366/0.001366, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.568/1.568, allocations: 222.9 MB / 241 MB, free: 15.14 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.285/2.285, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 67.89 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9081/0.9095, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001885/0.9115, allocations: 0.6763 MB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00132/0.9128, allocations: 1.057 MB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.681e-05/0.9129, allocations: 0 / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.716e-05/0.9129, allocations: 4.547 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.127e-05/0.913, allocations: 9.75 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.9133, allocations: 39.61 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.9134, allocations: 54.09 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.9135, allocations: 15.47 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.578e-05/0.9136, allocations: 18.92 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.064e-05/0.9137, allocations: 24.77 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.9137, allocations: 4.125 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.658e-05/0.9138, allocations: 18.58 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.9138, allocations: 16.08 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.153e-05/0.9139, allocations: 16.09 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001542/0.914, allocations: 62.7 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.914, allocations: 1.344 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.785e-06/0.914, allocations: 0.6562 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.9141, allocations: 4 kB / 1.091 GB, free: 4.172 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.00057/0.9146, allocations: 368.4 kB / 1.091 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.9147, allocations: 12.97 kB / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.849e-05/0.9147, allocations: 3.531 kB / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.494e-05/0.9148, allocations: 174 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.9148, allocations: 1.875 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.9149, allocations: 4.188 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002167/0.9151, allocations: 72.33 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.9151, allocations: 192 / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.9151, allocations: 9.25 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.9151, allocations: 0.75 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.9153, allocations: 39.09 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004171/0.9158, allocations: 286.4 kB / 1.091 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001735/0.9159, allocations: 58.67 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.9161, allocations: 29.7 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.9161, allocations: 5.5 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002145/0.9163, allocations: 78 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.9163, allocations: 7.875 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004373/0.9168, allocations: 126.2 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.9168, allocations: 52.5 kB / 1.092 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.084e-05/0.9169, allocations: 108.7 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.9169, allocations: 26.83 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.786e-05/0.9169, allocations: 93.92 kB / 1.092 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.917, allocations: 20.84 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.196e-05/0.917, allocations: 27.2 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.496e-05/0.9171, allocations: 314.3 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.9172, allocations: 29.22 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.9173, allocations: 57.08 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.9176, allocations: 97.89 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.9176, allocations: 1.062 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002852/0.9179, allocations: 113.4 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.9179, allocations: 10.3 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.9179, allocations: 1.844 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.9179, allocations: 1.75 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.9181, allocations: 16.59 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.9181, allocations: 2.141 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.438e-05/0.9182, allocations: 15.53 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.9182, allocations: 7.625 kB / 1.093 GB, free: 2.238 MB / 0.8575 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 7.467e-05/0.9183, allocations: 123.2 kB / 1.093 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.512e-05/0.9183, allocations: 3 kB / 1.093 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003025/0.9186, allocations: 111.4 kB / 1.093 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.9186, allocations: 1.75 kB / 1.093 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.9186, allocations: 0 / 1.093 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.9186, allocations: 1.266 kB / 1.093 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004189/0.919, allocations: 364.2 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.9191, allocations: 0 / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.813e-05/0.9191, allocations: 10.67 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.9191, allocations: 1 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.9192, allocations: 5.672 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.9192, allocations: 1.375 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.9192, allocations: 0 / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.9194, allocations: 201.5 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.326e-05/0.9195, allocations: 84.33 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.9195, allocations: 5.422 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.9196, allocations: 8.203 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.777e-05/0.9197, allocations: 5.422 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.9197, allocations: 6.5 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.418e-05/0.9197, allocations: 93.7 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9197, allocations: 0 / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002554/0.92, allocations: 16 kB / 1.094 GB, free: 1.367 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: 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.0001497/0.9202, allocations: 105.9 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002986/0.9205, allocations: 70.27 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.9205, allocations: 5.25 kB / 1.094 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.9206, allocations: 34.8 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.9209, allocations: 6.125 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003402/0.9212, allocations: 170.9 kB / 1.094 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.9214, allocations: 0.6825 MB / 1.095 GB, free: 396 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.343e-05/0.9214, allocations: 12.12 kB / 1.095 GB, free: 388 kB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.9214, allocations: 0 / 1.095 GB, free: 388 kB / 0.8575 GB Notification: Performance of Templates: time 0.003511/0.925, allocations: 0.9073 MB / 1.096 GB, free: 312 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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