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.000984/0.000984, 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.0009856/0.0009856, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9139/0.9139, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.756/1.756, allocations: 377.8 MB / 0.6221 GB, free: 8.652 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 2.715e-06/2.715e-06, allocations: 0 / 0.9809 GB, free: 2.586 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.013e-05/2.284e-05, allocations: 2.281 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.001476/0.001498, allocations: 0.6807 MB / 0.9816 GB, free: 1.906 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001337/0.002836, allocations: 1.092 MB / 0.9827 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.091e-05/0.002887, allocations: 4 kB / 0.9827 GB, free: 0.7969 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.414e-05/0.002921, allocations: 3.938 kB / 0.9827 GB, free: 0.793 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.399e-05/0.002995, allocations: 3.938 kB / 0.9827 GB, free: 0.7891 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.003325, allocations: 51.7 kB / 0.9827 GB, free: 0.7383 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.003434, allocations: 55.83 kB / 0.9828 GB, free: 0.6836 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.003542, allocations: 4 kB / 0.9828 GB, free: 0.6797 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.814e-05/0.00362, allocations: 27.97 kB / 0.9828 GB, free: 0.6523 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.76e-05/0.003668, allocations: 23.91 kB / 0.9828 GB, free: 0.6289 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.003685, allocations: 4 kB / 0.9828 GB, free: 0.625 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.153e-05/0.003746, allocations: 27.92 kB / 0.9829 GB, free: 0.5977 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.234e-05/0.003768, allocations: 7.984 kB / 0.9829 GB, free: 0.5898 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.1e-05/0.003799, allocations: 15.92 kB / 0.9829 GB, free: 0.5742 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001416/0.003941, allocations: 67.83 kB / 0.983 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.003945, allocations: 0 / 0.983 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.553e-06/0.003947, allocations: 0 / 0.983 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.003952, allocations: 0 / 0.983 GB, free: 0.5078 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.0005312/0.004483, allocations: 302.1 kB / 0.9832 GB, free: 184 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.004536, allocations: 8.031 kB / 0.9833 GB, free: 176 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.811e-05/0.004574, allocations: 34.75 kB / 0.9833 GB, free: 132 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.837e-05/0.004672, allocations: 8.891 kB / 0.9833 GB, free: 124 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.004797, allocations: 117.8 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.004814, allocations: 4.375 kB / 0.9834 GB, free: 15.97 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.004826, allocations: 384 / 0.9834 GB, free: 15.97 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001844/0.00501, allocations: 62.23 kB / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.005022, allocations: 4.172 kB / 0.9835 GB, free: 15.9 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.005034, allocations: 4.375 kB / 0.9835 GB, free: 15.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.005043, allocations: 8.125 kB / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.005152, allocations: 39.97 kB / 0.9835 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.005594, allocations: 243.9 kB / 0.9838 GB, free: 15.57 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.005712, allocations: 54.55 kB / 0.9838 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.237e-05/0.005764, allocations: 24.97 kB / 0.9838 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.005789, allocations: 11.88 kB / 0.9838 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/0.005982, allocations: 79.33 kB / 0.9839 GB, free: 15.38 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.005984, allocations: 0 / 0.9839 GB, free: 15.38 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0002794/0.006263, allocations: 121.6 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.006304, allocations: 59.41 kB / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.142e-05/0.006375, allocations: 105.8 kB / 0.9842 GB, free: 15.07 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.006387, allocations: 25.7 kB / 0.9842 GB, free: 15.04 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.382e-05/0.006431, allocations: 100.1 kB / 0.9843 GB, free: 14.94 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.006451, allocations: 19.89 kB / 0.9843 GB, free: 14.92 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.561e-05/0.006487, allocations: 25.72 kB / 0.9844 GB, free: 14.89 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.75e-05/0.006564, allocations: 314.8 kB / 0.9847 GB, free: 14.57 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.994e-05/0.006624, allocations: 27.98 kB / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.413e-05/0.006688, allocations: 56.27 kB / 0.9847 GB, free: 14.47 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.006811, allocations: 100.1 kB / 0.9848 GB, free: 14.36 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.006813, allocations: 0 / 0.9848 GB, free: 14.36 MB / 0.948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001525/0.006966, allocations: 117.5 kB / 0.9849 GB, free: 14.24 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.00698, allocations: 4 kB / 0.9849 GB, free: 14.23 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.006986, allocations: 0 / 0.9849 GB, free: 14.23 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.006998, allocations: 4.125 kB / 0.985 GB, free: 14.23 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.794e-05/0.007076, allocations: 27.91 kB / 0.985 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.007082, allocations: 4.062 kB / 0.985 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.61e-05/0.007118, allocations: 19.97 kB / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.007128, allocations: 4 kB / 0.985 GB, free: 14.18 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.855e-05/0.007197, allocations: 113.8 kB / 0.9851 GB, free: 14.06 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.007206, allocations: 7.891 kB / 0.9851 GB, free: 14.05 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001913/0.007397, allocations: 117.9 kB / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.0074, allocations: 4 kB / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.007404, allocations: 0 / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.007408, allocations: 0 / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002967/0.007705, allocations: 325.6 kB / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.007707, allocations: 256 / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/0.007741, allocations: 19.92 kB / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.007744, allocations: 0 / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.007751, allocations: 0 / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.007752, allocations: 0 / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.007753, allocations: 4 kB / 0.9856 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001528/0.007906, allocations: 203.6 kB / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-06/0.007913, allocations: 0 / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.007927, allocations: 3.938 kB / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.951e-05/0.007977, allocations: 11.98 kB / 0.9858 GB, free: 13.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.477e-05/0.008012, allocations: 4 kB / 0.9858 GB, free: 13.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.008027, allocations: 7.984 kB / 0.9858 GB, free: 13.29 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.926e-05/0.008056, allocations: 79.28 kB / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.008056, allocations: 4 kB / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001802/0.008236, allocations: 16 kB / 0.9859 GB, free: 13.2 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.0006176/0.008854, allocations: 0.7435 MB / 0.9866 GB, free: 12.43 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.009022, allocations: 67.89 kB / 0.9867 GB, free: 12.36 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.009025, allocations: 0 / 0.9867 GB, free: 12.36 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.075e-05/0.009086, allocations: 40.16 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.0002159/0.009302, allocations: 8 kB / 0.9867 GB, free: 12.31 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.01038, allocations: 1.416 MB / 0.9881 GB, free: 10.79 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.329e-05/0.01042, allocations: 71.34 kB / 0.9882 GB, free: 10.7 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.962e-05/0.01045, 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.809e-05/0.01049, allocations: 16.5 kB / 0.9882 GB, free: 10.68 MB / 0.948 GB Notification: Performance of SimCode: time 7.02e-07/0.01049, allocations: 0 / 0.9882 GB, free: 10.68 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01639/0.02688, allocations: 2.527 MB / 0.9907 GB, free: 8.309 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.811/6.838, allocations: 2.562 kB / 0.9907 GB, free: 8.309 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.990586260333657]