Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00081/0.00081, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008744/0.0008744, allocations: 169.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9167/0.9167, allocations: 177.2 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.727/1.727, allocations: 377.8 MB / 0.6221 GB, free: 8.637 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 7.314e-06/7.314e-06, allocations: 0 / 0.9809 GB, free: 2.586 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.038e-05/2.769e-05, allocations: 4.953 kB / 0.9809 GB, free: 2.582 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001367/0.001395, allocations: 0.6778 MB / 0.9816 GB, free: 1.906 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001054/0.002449, allocations: 1.092 MB / 0.9827 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.752e-05/0.002496, allocations: 3.938 kB / 0.9827 GB, free: 0.7969 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.823e-05/0.002525, allocations: 0 / 0.9827 GB, free: 0.7969 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.325e-05/0.002588, allocations: 11.86 kB / 0.9827 GB, free: 0.7852 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.002886, allocations: 47.78 kB / 0.9827 GB, free: 0.7383 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.713e-05/0.002984, allocations: 51.83 kB / 0.9828 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.036e-05/0.003074, allocations: 8 kB / 0.9828 GB, free: 0.6797 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.768e-05/0.003152, allocations: 31.91 kB / 0.9828 GB, free: 0.6484 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.583e-05/0.003197, allocations: 19.97 kB / 0.9828 GB, free: 0.6289 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.003212, allocations: 4 kB / 0.9828 GB, free: 0.625 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.097e-05/0.003273, allocations: 23.92 kB / 0.9829 GB, free: 0.6016 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.003294, allocations: 11.92 kB / 0.9829 GB, free: 0.5898 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.853e-05/0.003323, allocations: 15.98 kB / 0.9829 GB, free: 0.5742 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.003455, allocations: 67.77 kB / 0.983 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.003457, allocations: 0 / 0.983 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.192e-06/0.003458, allocations: 4 kB / 0.983 GB, free: 0.5039 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.003462, allocations: 4 kB / 0.983 GB, free: 0.5 MB / 0.9323 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.0004287/0.003891, allocations: 290.2 kB / 0.9832 GB, free: 188 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.003932, allocations: 12.03 kB / 0.9832 GB, free: 176 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.224e-05/0.003964, allocations: 34.69 kB / 0.9833 GB, free: 132 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.225e-05/0.004026, allocations: 8.891 kB / 0.9833 GB, free: 124 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.755e-05/0.004114, allocations: 113.8 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.004124, allocations: 4.375 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.004135, allocations: 8.375 kB / 0.9834 GB, free: 15.97 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.00428, allocations: 62.17 kB / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.004288, allocations: 192 / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.004297, allocations: 4.375 kB / 0.9835 GB, free: 15.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.016e-06/0.004305, allocations: 4.125 kB / 0.9835 GB, free: 15.9 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.004405, allocations: 43.95 kB / 0.9835 GB, free: 15.86 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003601/0.004766, allocations: 243.9 kB / 0.9838 GB, free: 15.57 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.004885, allocations: 54.55 kB / 0.9838 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.394e-05/0.004939, allocations: 24.97 kB / 0.9838 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.004962, allocations: 11.88 kB / 0.9838 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.005117, allocations: 83.25 kB / 0.9839 GB, free: 15.38 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.005118, allocations: 0 / 0.9839 GB, free: 15.38 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0002842/0.005403, allocations: 125.7 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.005442, allocations: 55.41 kB / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.124e-05/0.005503, allocations: 109.8 kB / 0.9842 GB, free: 15.07 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.005515, allocations: 29.7 kB / 0.9842 GB, free: 15.03 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.044e-05/0.005556, allocations: 96.02 kB / 0.9843 GB, free: 14.93 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.005573, allocations: 15.91 kB / 0.9843 GB, free: 14.92 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.005606, allocations: 21.72 kB / 0.9844 GB, free: 14.89 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.349e-05/0.005689, allocations: 318.8 kB / 0.9847 GB, free: 14.57 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.617e-05/0.005745, allocations: 27.97 kB / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.13e-05/0.005816, allocations: 64.22 kB / 0.9847 GB, free: 14.46 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.005937, allocations: 92.19 kB / 0.9848 GB, free: 14.36 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.00594, allocations: 0 / 0.9848 GB, free: 14.36 MB / 0.948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001583/0.006098, allocations: 125.5 kB / 0.9849 GB, free: 14.23 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.006111, allocations: 4 kB / 0.985 GB, free: 14.23 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.006117, allocations: 4 kB / 0.985 GB, free: 14.22 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.006128, allocations: 0 / 0.985 GB, free: 14.22 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.151e-05/0.0062, allocations: 15.98 kB / 0.985 GB, free: 14.21 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.006207, allocations: 8.297 kB / 0.985 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.306e-05/0.00624, allocations: 4 kB / 0.985 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.006248, allocations: 4 kB / 0.985 GB, free: 14.19 MB / 0.948 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.935e-05/0.006317, allocations: 125.8 kB / 0.9851 GB, free: 14.06 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-06/0.006327, allocations: 15.89 kB / 0.9851 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001776/0.006504, allocations: 110 kB / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.006507, allocations: 0 / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.006511, allocations: 0 / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.006515, allocations: 0 / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005513/0.007067, allocations: 329.5 kB / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.007069, allocations: 0 / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.395e-05/0.007103, allocations: 16.23 kB / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.007106, allocations: 0 / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.007114, allocations: 4 kB / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.007116, allocations: 0 / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.007117, allocations: 4 kB / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000157/0.007274, allocations: 199.6 kB / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.061e-06/0.00728, allocations: 0 / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.007294, allocations: 11.88 kB / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.903e-05/0.007343, allocations: 11.92 kB / 0.9858 GB, free: 13.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.342e-05/0.007377, allocations: 11.98 kB / 0.9858 GB, free: 13.29 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.00739, allocations: 4 kB / 0.9858 GB, free: 13.29 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.855e-05/0.007418, allocations: 79.28 kB / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007418, allocations: 0 / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001759/0.007594, allocations: 16 kB / 0.9859 GB, free: 13.19 MB / 0.948 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.0004255/0.00802, allocations: 0.7396 MB / 0.9866 GB, free: 12.43 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000184/0.008204, allocations: 71.89 kB / 0.9867 GB, free: 12.36 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.008205, allocations: 0 / 0.9867 GB, free: 12.36 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.056e-05/0.008266, allocations: 35.91 kB / 0.9867 GB, free: 12.32 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.008464, allocations: 6.578 kB / 0.9867 GB, free: 12.32 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.009541, allocations: 1.43 MB / 0.9881 GB, free: 10.78 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.15e-05/0.009583, allocations: 63.34 kB / 0.9882 GB, free: 10.7 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.941e-05/0.009612, allocations: 7.984 kB / 0.9882 GB, free: 10.69 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.64e-05/0.009649, allocations: 16.5 kB / 0.9882 GB, free: 10.68 MB / 0.948 GB Notification: Performance of SimCode: time 4.91e-07/0.009649, allocations: 0 / 0.9882 GB, free: 10.68 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01986/0.02951, allocations: 2.518 MB / 0.9907 GB, free: 8.312 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.746/6.775, allocations: 15.2 kB / 0.9907 GB, free: 8.305 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable zerOrdHol.u in file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv. Warning: Get data of variable zerOrdHol.u from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.963531507179141]