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.001319/0.001319, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 196.8 kB / 16.53 MB, free: 6.699 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.446/2.446, allocations: 390.3 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 63.91 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.643/0.6445, allocations: 140.4 MB / 0.9497 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002007/0.6465, allocations: 0.6627 MB / 0.9504 GB, free: 8.68 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00125/0.6478, allocations: 1.064 MB / 0.9514 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.876e-05/0.6479, allocations: 1.594 kB / 0.9514 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.987e-05/0.648, allocations: 0 / 0.9514 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.068e-05/0.648, allocations: 9.188 kB / 0.9514 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.6484, allocations: 37.64 kB / 0.9515 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.079e-05/0.6485, allocations: 56.19 kB / 0.9515 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.6486, allocations: 9.594 kB / 0.9515 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.054e-05/0.6487, allocations: 14.92 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.535e-05/0.6488, allocations: 35.41 kB / 0.9516 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.541e-05/0.6488, allocations: 3.906 kB / 0.9516 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.91e-05/0.6489, allocations: 18.36 kB / 0.9516 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.232e-05/0.6489, allocations: 10.52 kB / 0.9516 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.555e-05/0.6489, allocations: 21.2 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.6491, allocations: 56.84 kB / 0.9517 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.6491, allocations: 1.469 kB / 0.9517 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.714e-06/0.6491, allocations: 0 / 0.9517 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.6491, allocations: 0 / 0.9517 GB, free: 7.637 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.0005482/0.6496, allocations: 374.6 kB / 0.952 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.6497, allocations: 14.53 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.118e-05/0.6497, allocations: 40.08 kB / 0.9521 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/0.6498, allocations: 6.594 kB / 0.9521 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.368e-05/0.6499, allocations: 163 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.6499, allocations: 1.469 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.6499, allocations: 3.906 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.6501, allocations: 64.62 kB / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.6501, allocations: 7.938 kB / 0.9523 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.6501, allocations: 1.281 kB / 0.9523 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.6501, allocations: 5.281 kB / 0.9523 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.6504, allocations: 50.56 kB / 0.9524 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004181/0.6508, allocations: 279.5 kB / 0.9526 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.651, allocations: 62.64 kB / 0.9527 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.6511, allocations: 35.8 kB / 0.9527 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.6511, allocations: 1.469 kB / 0.9527 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.6513, allocations: 76.97 kB / 0.9528 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.6514, allocations: 4 kB / 0.9528 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004336/0.6518, allocations: 125.6 kB / 0.9529 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.6518, allocations: 53.22 kB / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.993e-05/0.6519, allocations: 106.1 kB / 0.9531 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.6519, allocations: 25.7 kB / 0.9531 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.898e-05/0.652, allocations: 89.62 kB / 0.9532 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.652, allocations: 14.94 kB / 0.9532 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.652, allocations: 31.95 kB / 0.9532 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.619e-05/0.6521, allocations: 316.7 kB / 0.9535 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.6522, allocations: 30.59 kB / 0.9536 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.6523, allocations: 58.45 kB / 0.9536 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002205/0.6526, allocations: 91.52 kB / 0.9537 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.6526, allocations: 3.984 kB / 0.9537 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002702/0.6529, allocations: 117.8 kB / 0.9538 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.6529, allocations: 9.078 kB / 0.9538 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.6529, allocations: 1.344 kB / 0.9538 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.6529, allocations: 2.625 kB / 0.9538 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.653, allocations: 17.02 kB / 0.9539 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.653, allocations: 1.312 kB / 0.9539 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.141e-05/0.6531, allocations: 5.25 kB / 0.9539 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.6531, allocations: 10.81 kB / 0.9539 GB, free: 5.5 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 6.883e-05/0.6532, allocations: 131.9 kB / 0.954 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.6532, allocations: 7.156 kB / 0.954 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002856/0.6535, allocations: 106.7 kB / 0.9541 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.6535, allocations: 5.344 kB / 0.9541 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.6536, allocations: 0 / 0.9541 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.6536, allocations: 0 / 0.9541 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003844/0.654, allocations: 364.5 kB / 0.9545 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.654, allocations: 0 / 0.9545 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.522e-05/0.654, allocations: 11.08 kB / 0.9545 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.654, allocations: 1.344 kB / 0.9545 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.6541, allocations: 0 / 0.9545 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.6541, allocations: 1.469 kB / 0.9545 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6541, allocations: 12 kB / 0.9545 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.6544, allocations: 211.1 kB / 0.9547 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.194e-05/0.6544, allocations: 79.45 kB / 0.9548 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.6544, allocations: 5.297 kB / 0.9548 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.6545, allocations: 8.938 kB / 0.9548 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.6546, allocations: 10.61 kB / 0.9548 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.6546, allocations: 1.312 kB / 0.9548 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.872e-05/0.6546, allocations: 92.14 kB / 0.9549 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6546, allocations: 1.25 kB / 0.9549 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002559/0.6549, allocations: 10.22 kB / 0.9549 GB, free: 4.539 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.0004566/0.6553, allocations: 0.7283 MB / 0.9556 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000269/0.6556, allocations: 77.62 kB / 0.9557 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.6556, allocations: 0 / 0.9557 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.6557, allocations: 31.92 kB / 0.9557 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.656, allocations: 16.19 kB / 0.9557 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.6575, allocations: 1.414 MB / 0.9571 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/0.6577, allocations: 0.6848 MB / 0.9578 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.846e-05/0.6577, allocations: 5.344 kB / 0.9578 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.827e-05/0.6578, allocations: 18.98 kB / 0.9578 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.6578, allocations: 96 / 0.9578 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.6777, allocations: 1.773 MB / 0.9595 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.485/8.163, allocations: 19.61 kB / 0.9595 GB, free: 0.7266 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_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_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.csv","/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