Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001716/0.001716, allocations: 102.6 kB / 16.45 MB, free: 6.449 MB / 14.72 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.002131/0.002131, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 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 1.55/1.55, allocations: 230.6 MB / 252.8 MB, free: 9.133 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.248/3.248, allocations: 0.49 GB / 0.7916 GB, free: 33.22 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 67.06 kB / 1.149 GB, free: 26.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3257, allocations: 176.1 MB / 1.321 GB, free: 3.262 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002049/0.3278, allocations: 0.6874 MB / 1.321 GB, free: 2.582 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001587/0.3294, allocations: 1.12 MB / 1.323 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.811e-05/0.3294, allocations: 0 / 1.323 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.419e-05/0.3295, allocations: 3.938 kB / 1.323 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.817e-05/0.3295, allocations: 7.938 kB / 1.323 GB, free: 1.438 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.3299, allocations: 55.81 kB / 1.323 GB, free: 1.383 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000129/0.33, allocations: 67.78 kB / 1.323 GB, free: 1.316 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.3301, allocations: 11.98 kB / 1.323 GB, free: 1.305 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.861e-05/0.3302, allocations: 31.91 kB / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.083e-05/0.3303, allocations: 31.84 kB / 1.323 GB, free: 1.242 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.3303, allocations: 12 kB / 1.323 GB, free: 1.23 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.801e-05/0.3304, allocations: 23.98 kB / 1.323 GB, free: 1.207 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.62e-05/0.3304, allocations: 15.97 kB / 1.323 GB, free: 1.191 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.633e-05/0.3305, allocations: 31.86 kB / 1.323 GB, free: 1.16 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001938/0.3306, allocations: 75.97 kB / 1.323 GB, free: 1.086 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3307, allocations: 4 kB / 1.323 GB, free: 1.082 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3307, allocations: 3.938 kB / 1.323 GB, free: 1.078 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.3307, allocations: 0 / 1.323 GB, free: 1.078 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007518/0.3314, allocations: 387.2 kB / 1.323 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.3315, allocations: 11.98 kB / 1.323 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.642e-05/0.3315, allocations: 42.73 kB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.954e-05/0.3316, allocations: 4.938 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.3318, allocations: 168.3 kB / 1.324 GB, free: 388 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.3318, allocations: 384 / 1.324 GB, free: 388 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.3318, allocations: 12.38 kB / 1.324 GB, free: 376 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002279/0.332, allocations: 82.14 kB / 1.324 GB, free: 288 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.332, allocations: 7.938 kB / 1.324 GB, free: 280 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.332, allocations: 0 / 1.324 GB, free: 280 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.332, allocations: 3.938 kB / 1.324 GB, free: 276 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002146/0.3323, allocations: 55.95 kB / 1.324 GB, free: 220 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005416/0.3328, allocations: 320.7 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.333, allocations: 74.53 kB / 1.324 GB, free: 15.77 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.3331, allocations: 40.97 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.3332, allocations: 7.984 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.3334, allocations: 83.38 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 3.376e-06/0.3334, allocations: 3.984 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005175/0.3339, allocations: 177.5 kB / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.334, allocations: 51.41 kB / 1.324 GB, free: 15.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.462e-05/0.3341, allocations: 109.8 kB / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.3341, allocations: 33.7 kB / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.3342, allocations: 88.36 kB / 1.325 GB, free: 15.13 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/0.3342, allocations: 23.8 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.96e-05/0.3343, allocations: 37.7 kB / 1.325 GB, free: 15.06 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.3344, allocations: 326.8 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.3345, allocations: 35.97 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.3347, allocations: 62.48 kB / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.3349, allocations: 102.6 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3349, allocations: 0 / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003314/0.3352, allocations: 137.5 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3353, allocations: 8 kB / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3353, allocations: 0 / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.3353, allocations: 0 / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.3354, allocations: 31.98 kB / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.3354, allocations: 0 / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.568e-05/0.3355, allocations: 16.19 kB / 1.325 GB, free: 14.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.3355, allocations: 8 kB / 1.325 GB, free: 14.32 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001013/0.3356, allocations: 125.7 kB / 1.325 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.555e-05/0.3356, allocations: 4 kB / 1.325 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003644/0.336, allocations: 146 kB / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.336, allocations: 7.938 kB / 1.326 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.336, allocations: 3.938 kB / 1.326 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.336, allocations: 3.984 kB / 1.326 GB, free: 14.01 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005671/0.3366, allocations: 410.8 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3366, allocations: 0 / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.236e-05/0.3367, allocations: 11.98 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.3367, allocations: 4 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.3367, allocations: 4 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3367, allocations: 96 / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3367, allocations: 3.938 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000376/0.3371, allocations: 239.3 kB / 1.326 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.3371, allocations: 81.11 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.3371, allocations: 0 / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.3372, allocations: 11.98 kB / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.3373, allocations: 15.92 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.3373, allocations: 4 kB / 1.326 GB, free: 13.15 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.02e-05/0.3373, allocations: 79.28 kB / 1.326 GB, free: 13.07 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3373, allocations: 0 / 1.326 GB, free: 13.07 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002572/0.3376, allocations: 20 kB / 1.326 GB, free: 13.05 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007517/0.3383, allocations: 0.7826 MB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003264/0.3387, allocations: 95.81 kB / 1.327 GB, free: 12.15 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3387, allocations: 0 / 1.327 GB, free: 12.15 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.3388, allocations: 40.11 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.3391, allocations: 18.03 kB / 1.327 GB, free: 12.1 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.3411, allocations: 1.513 MB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.3414, allocations: 0.6885 MB / 1.33 GB, free: 9.781 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.248e-05/0.3414, allocations: 8.422 kB / 1.33 GB, free: 9.773 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.304e-05/0.3415, allocations: 27.36 kB / 1.33 GB, free: 9.746 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3415, allocations: 0 / 1.33 GB, free: 9.746 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02621/0.3677, allocations: 2.072 MB / 1.332 GB, free: 7.785 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.432/8.799, allocations: 3.938 kB / 1.332 GB, free: 7.781 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_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_FirstOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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: 15.67601962806657]