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.0008121/0.0008117, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006878/0.006878, allocations: 172.9 kB / 16.27 MB, free: 6.652 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.588/1.588, allocations: 223.3 MB / 240.3 MB, free: 5.27 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.625/2.625, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003779/0.0003781, allocations: 11.98 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8406/0.841, allocations: 142.4 MB / 0.955 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0009726/0.842, allocations: 409.2 kB / 0.9554 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.8434, allocations: 1.046 MB / 0.9565 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.743e-05/0.8434, allocations: 1.406 kB / 0.9565 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.079e-05/0.8435, allocations: 3.938 kB / 0.9565 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.509e-05/0.8435, allocations: 11.92 kB / 0.9565 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.8438, allocations: 33.81 kB / 0.9565 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.8439, allocations: 51.91 kB / 0.9566 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.8441, allocations: 8.734 kB / 0.9566 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.47e-05/0.8441, allocations: 15.42 kB / 0.9566 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.609e-05/0.8442, allocations: 21.8 kB / 0.9566 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.759e-05/0.8443, allocations: 6.531 kB / 0.9566 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.657e-05/0.8443, allocations: 20.56 kB / 0.9566 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.183e-05/0.8444, allocations: 9.266 kB / 0.9566 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.059e-05/0.8444, allocations: 47.2 kB / 0.9567 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.8446, allocations: 48.95 kB / 0.9567 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.8446, allocations: 0.9375 kB / 0.9567 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.046e-06/0.8446, allocations: 0 / 0.9567 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.8446, allocations: 0 / 0.9567 GB, free: 6.656 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.0005732/0.8452, allocations: 374.7 kB / 0.9571 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.8453, allocations: 10.03 kB / 0.9571 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.648e-05/0.8453, allocations: 7.25 kB / 0.9571 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.8454, allocations: 169.6 kB / 0.9573 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.8454, allocations: 3.312 kB / 0.9573 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.8455, allocations: 3.094 kB / 0.9573 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.8457, allocations: 68.75 kB / 0.9573 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.8457, allocations: 5.281 kB / 0.9573 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.8457, allocations: 3.938 kB / 0.9573 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.8458, allocations: 5.047 kB / 0.9573 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002094/0.846, allocations: 53.11 kB / 0.9574 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004541/0.8464, allocations: 284.5 kB / 0.9577 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.8466, allocations: 66.36 kB / 0.9577 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.8467, allocations: 40.52 kB / 0.9578 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.8468, allocations: 1.125 kB / 0.9578 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.847, allocations: 83.73 kB / 0.9578 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.847, allocations: 0 / 0.9578 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004628/0.8475, allocations: 139.4 kB / 0.958 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.8475, allocations: 56.66 kB / 0.958 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.8476, allocations: 110.6 kB / 0.9581 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.8476, allocations: 25.7 kB / 0.9582 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.384e-05/0.8477, allocations: 93.36 kB / 0.9583 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.8477, allocations: 22.61 kB / 0.9583 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.546e-05/0.8477, allocations: 16.47 kB / 0.9583 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.46e-05/0.8478, allocations: 313.6 kB / 0.9586 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.8479, allocations: 35.62 kB / 0.9586 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.8481, allocations: 66.95 kB / 0.9587 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.8483, allocations: 107.8 kB / 0.9588 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.8483, allocations: 1.219 kB / 0.9588 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002981/0.8486, allocations: 127 kB / 0.9589 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.8487, allocations: 10.12 kB / 0.9589 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.8487, allocations: 1.062 kB / 0.9589 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.8487, allocations: 2.375 kB / 0.9589 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.8488, allocations: 22.42 kB / 0.9589 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.8488, allocations: 6.156 kB / 0.959 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.962e-05/0.8489, allocations: 19.61 kB / 0.959 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.8489, allocations: 3.219 kB / 0.959 GB, free: 4.551 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 7.91e-05/0.849, allocations: 119 kB / 0.9591 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.849, allocations: 2.219 kB / 0.9591 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003263/0.8494, allocations: 120.7 kB / 0.9592 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.8494, allocations: 1.094 kB / 0.9592 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.8494, allocations: 1.031 kB / 0.9592 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.8494, allocations: 0 / 0.9592 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004398/0.8499, allocations: 385.4 kB / 0.9596 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.8499, allocations: 0 / 0.9596 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.45e-05/0.8499, allocations: 10.78 kB / 0.9596 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.85, allocations: 0 / 0.9596 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.85, allocations: 10.11 kB / 0.9596 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.85, allocations: 0 / 0.9596 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.85, allocations: 0 / 0.9596 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.8503, allocations: 204.6 kB / 0.9598 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.468e-05/0.8503, allocations: 82.45 kB / 0.9599 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.8503, allocations: 5.5 kB / 0.9599 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.915e-05/0.8504, allocations: 15.23 kB / 0.9599 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.082e-05/0.8505, allocations: 8.062 kB / 0.9599 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.8505, allocations: 9.297 kB / 0.9599 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.501e-05/0.8506, allocations: 88.77 kB / 0.96 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8506, allocations: 0 / 0.96 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002517/0.8508, allocations: 11 kB / 0.96 GB, free: 3.609 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.0001788/0.851, allocations: 110.5 kB / 0.9601 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002822/0.8513, allocations: 86.73 kB / 0.9602 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8513, allocations: 0 / 0.9602 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.8514, allocations: 36.73 kB / 0.9602 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.8517, allocations: 12.36 kB / 0.9602 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003534/0.8521, allocations: 141.6 kB / 0.9604 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001645/0.8523, allocations: 0.6928 MB / 0.961 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.574e-05/0.8523, allocations: 4.125 kB / 0.9611 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.684e-05/0.8523, allocations: 14.19 kB / 0.9611 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of SimCode: time 4.41e-07/0.8523, allocations: 1.375 kB / 0.9611 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of Templates: time 0.003861/0.8562, allocations: 0.7419 MB / 0.9618 GB, free: 2.219 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