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.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: 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.001005/0.001005, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.0008778/0.0008778, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 223.3 MB / 240 MB, free: 5.223 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.628/2.628, allocations: 390.9 MB / 0.666 GB, free: 2.453 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003644/0.0003646, allocations: 8 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.804/0.8044, allocations: 142.4 MB / 0.9544 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0009312/0.8054, allocations: 395.2 kB / 0.9548 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001217/0.8066, allocations: 1.034 MB / 0.9558 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.911e-05/0.8067, allocations: 1.312 kB / 0.9558 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.8067, allocations: 7.922 kB / 0.9558 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.565e-05/0.8067, allocations: 3.938 kB / 0.9558 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.807, allocations: 33.62 kB / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.8071, allocations: 52.97 kB / 0.9559 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.8073, allocations: 9.219 kB / 0.9559 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.443e-05/0.8073, allocations: 22.89 kB / 0.956 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.863e-05/0.8074, allocations: 23.03 kB / 0.956 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.8074, allocations: 1.375 kB / 0.956 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.391e-05/0.8075, allocations: 16.44 kB / 0.956 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.156e-05/0.8076, allocations: 6.312 kB / 0.956 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.972e-05/0.8076, allocations: 32.42 kB / 0.956 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.8077, allocations: 34.8 kB / 0.9561 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.8077, allocations: 0 / 0.9561 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.605e-06/0.8077, allocations: 0 / 0.9561 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.8077, allocations: 4 kB / 0.9561 GB, free: 6.355 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.0005152/0.8083, allocations: 366.2 kB / 0.9564 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.8083, allocations: 9.969 kB / 0.9564 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.976e-05/0.8084, allocations: 10.05 kB / 0.9564 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.819e-05/0.8085, allocations: 172.9 kB / 0.9566 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.8085, allocations: 10.27 kB / 0.9566 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.8085, allocations: 2.906 kB / 0.9566 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.8087, allocations: 73 kB / 0.9567 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.8087, allocations: 0 / 0.9567 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.8088, allocations: 1.344 kB / 0.9567 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.8088, allocations: 0 / 0.9567 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.809, allocations: 61.31 kB / 0.9567 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004168/0.8094, allocations: 275.4 kB / 0.957 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.8096, allocations: 70.64 kB / 0.9571 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.8097, allocations: 32.84 kB / 0.9571 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.8097, allocations: 1.375 kB / 0.9571 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.8099, allocations: 81.78 kB / 0.9572 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.164e-06/0.8099, allocations: 1.219 kB / 0.9572 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004642/0.8104, allocations: 143.5 kB / 0.9573 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.8105, allocations: 56.44 kB / 0.9574 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.596e-05/0.8105, allocations: 106 kB / 0.9575 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.8106, allocations: 29.7 kB / 0.9575 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.8106, allocations: 90.33 kB / 0.9576 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.8106, allocations: 17.98 kB / 0.9576 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-06/0.8107, allocations: 5.094 kB / 0.9576 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.553e-05/0.8107, allocations: 320.1 kB / 0.9579 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.8108, allocations: 31.56 kB / 0.9579 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.811, allocations: 66.64 kB / 0.958 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.8111, allocations: 38.14 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.8111, allocations: 1.25 kB / 0.9581 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002706/0.8114, allocations: 126.5 kB / 0.9582 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.8114, allocations: 7.594 kB / 0.9582 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.8114, allocations: 5.156 kB / 0.9582 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.8115, allocations: 6.266 kB / 0.9582 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.8116, allocations: 22.83 kB / 0.9582 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.8116, allocations: 5.359 kB / 0.9582 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.944e-05/0.8117, allocations: 15.38 kB / 0.9582 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.8117, allocations: 7.656 kB / 0.9582 GB, free: 4.332 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.566e-05/0.8118, allocations: 114.2 kB / 0.9583 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.8118, allocations: 5.984 kB / 0.9584 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000289/0.8121, allocations: 128.6 kB / 0.9585 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.8121, allocations: 5.422 kB / 0.9585 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.8121, allocations: 0 / 0.9585 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.8121, allocations: 0 / 0.9585 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003841/0.8125, allocations: 364.6 kB / 0.9588 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.8125, allocations: 1.562 kB / 0.9588 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.974e-05/0.8126, allocations: 17.17 kB / 0.9588 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.8126, allocations: 5.391 kB / 0.9589 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.8126, allocations: 0 / 0.9589 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.8126, allocations: 1.562 kB / 0.9589 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.8126, allocations: 48 / 0.9589 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.8129, allocations: 212.8 kB / 0.9591 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.8129, allocations: 82.33 kB / 0.9591 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.8129, allocations: 5.422 kB / 0.9591 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.096e-05/0.813, allocations: 15.83 kB / 0.9592 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.8131, allocations: 10.7 kB / 0.9592 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.8131, allocations: 1.906 kB / 0.9592 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.579e-05/0.8131, allocations: 80.97 kB / 0.9592 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8131, allocations: 0 / 0.9592 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002495/0.8134, allocations: 14.91 kB / 0.9593 GB, free: 3.395 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001581/0.8136, allocations: 114.1 kB / 0.9594 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002509/0.8138, allocations: 82.52 kB / 0.9594 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.8138, allocations: 0 / 0.9594 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.8139, allocations: 40.64 kB / 0.9595 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.8142, allocations: 8.625 kB / 0.9595 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003127/0.8146, allocations: 140.5 kB / 0.9596 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.8147, allocations: 0.6864 MB / 0.9603 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.538e-05/0.8147, allocations: 10.92 kB / 0.9603 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.246e-05/0.8148, allocations: 11.56 kB / 0.9603 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.8148, allocations: 0 / 0.9603 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of Templates: time 0.002895/0.8177, allocations: 0.7235 MB / 0.961 GB, free: 2.016 MB / 0.7169 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/jenkins/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