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.001062/0.001062, 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.001183/0.001183, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.348/1.348, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.406/2.406, allocations: 390.2 MB / 0.6647 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 67.89 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6319/0.6333, allocations: 140.4 MB / 0.9497 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002016/0.6353, allocations: 0.6584 MB / 0.9504 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00115/0.6365, allocations: 1.057 MB / 0.9514 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.285e-05/0.6366, allocations: 4 kB / 0.9514 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.6366, allocations: 3.938 kB / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.259e-05/0.6367, allocations: 13.28 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.637, allocations: 42.34 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.22e-05/0.6371, allocations: 56.41 kB / 0.9515 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.6372, allocations: 13.77 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.903e-05/0.6373, allocations: 14.66 kB / 0.9516 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.382e-05/0.6373, allocations: 26.62 kB / 0.9516 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.6374, allocations: 7.969 kB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.14e-05/0.6374, allocations: 15.61 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.159e-05/0.6375, allocations: 17.5 kB / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.506e-05/0.6375, allocations: 16.75 kB / 0.9516 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.6376, allocations: 57.91 kB / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.6376, allocations: 0 / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6377, allocations: 1.406 kB / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.6377, allocations: 0 / 0.9517 GB, free: 7.59 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.0005258/0.6382, allocations: 379.3 kB / 0.9521 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.6382, allocations: 9.875 kB / 0.9521 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.279e-05/0.6383, allocations: 30.75 kB / 0.9521 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.182e-05/0.6383, allocations: 7.688 kB / 0.9521 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.449e-05/0.6384, allocations: 171.7 kB / 0.9523 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.6384, allocations: 1.844 kB / 0.9523 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.6384, allocations: 3.062 kB / 0.9523 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.6386, allocations: 65.19 kB / 0.9523 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.6386, allocations: 3.938 kB / 0.9523 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.6386, allocations: 4 kB / 0.9523 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.6386, allocations: 1.625 kB / 0.9523 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.6388, allocations: 43.98 kB / 0.9524 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003372/0.6392, allocations: 290.9 kB / 0.9527 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001476/0.6393, allocations: 62.11 kB / 0.9527 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.351e-05/0.6394, allocations: 26.69 kB / 0.9527 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.6395, allocations: 1.438 kB / 0.9527 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001747/0.6396, allocations: 78.91 kB / 0.9528 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.974e-06/0.6396, allocations: 0 / 0.9528 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003709/0.64, allocations: 128.9 kB / 0.9529 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/0.6401, allocations: 52.91 kB / 0.953 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.114e-05/0.6401, allocations: 105.8 kB / 0.9531 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.6401, allocations: 31.33 kB / 0.9531 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.244e-05/0.6402, allocations: 84.08 kB / 0.9532 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.6402, allocations: 22.8 kB / 0.9532 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.6402, allocations: 21.34 kB / 0.9532 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.795e-05/0.6403, allocations: 328.1 kB / 0.9536 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.84e-05/0.6404, allocations: 22.27 kB / 0.9536 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.6405, allocations: 67.2 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.6407, allocations: 93.88 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.6407, allocations: 1.125 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00026/0.641, allocations: 118.1 kB / 0.9538 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.641, allocations: 5.031 kB / 0.9539 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.641, allocations: 5 kB / 0.9539 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.641, allocations: 2.125 kB / 0.9539 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.6411, allocations: 16.17 kB / 0.9539 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.6411, allocations: 2.719 kB / 0.9539 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.729e-05/0.6412, allocations: 8.109 kB / 0.9539 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.6412, allocations: 7.469 kB / 0.9539 GB, free: 5.453 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.669e-05/0.6413, allocations: 122.3 kB / 0.954 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.6413, allocations: 10.25 kB / 0.954 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002828/0.6416, allocations: 114.8 kB / 0.9541 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.6416, allocations: 1.375 kB / 0.9541 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.6416, allocations: 0 / 0.9541 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.6416, allocations: 1.562 kB / 0.9541 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.642, allocations: 362.3 kB / 0.9545 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.642, allocations: 1.469 kB / 0.9545 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.219e-05/0.6421, allocations: 11.67 kB / 0.9545 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.6421, allocations: 0 / 0.9545 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.6421, allocations: 5.344 kB / 0.9545 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.6421, allocations: 0 / 0.9545 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6421, allocations: 0 / 0.9545 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002643/0.6424, allocations: 208.8 kB / 0.9547 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.471e-05/0.6424, allocations: 78.55 kB / 0.9548 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.6425, allocations: 3.938 kB / 0.9548 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.789e-05/0.6426, allocations: 13.89 kB / 0.9548 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.6426, allocations: 10.83 kB / 0.9548 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.6426, allocations: 6.938 kB / 0.9548 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.91e-05/0.6427, allocations: 83.56 kB / 0.9549 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6427, allocations: 0 / 0.9549 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002409/0.6429, allocations: 15.41 kB / 0.9549 GB, free: 4.5 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.0004761/0.6434, allocations: 0.7319 MB / 0.9556 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002682/0.6437, allocations: 76.8 kB / 0.9557 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.6437, allocations: 0 / 0.9557 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.6438, allocations: 37.34 kB / 0.9557 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.6441, allocations: 12.19 kB / 0.9557 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.6454, allocations: 1.415 MB / 0.9571 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.6455, allocations: 0.6896 MB / 0.9578 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.315e-05/0.6455, allocations: 3.625 kB / 0.9578 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.703e-05/0.6456, allocations: 14.97 kB / 0.9578 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6456, allocations: 0 / 0.9578 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/0.6633, allocations: 1.775 MB / 0.9595 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/8.295, allocations: 15.48 kB / 0.9596 GB, free: 0.6836 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