Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 107.7 kB / 16.4 MB, free: 6.492 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 192.5 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 222.9 MB / 245.1 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.628/2.628, allocations: 437.1 MB / 0.7171 GB, free: 4.098 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 67.91 kB / 1.027 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7951/0.797, allocations: 151.6 MB / 1.175 GB, free: 17.41 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001635/0.7987, allocations: 0.6894 MB / 1.175 GB, free: 16.98 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001002/0.7997, allocations: 1.065 MB / 1.176 GB, free: 16.19 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.159e-05/0.7998, allocations: 5.062 kB / 1.176 GB, free: 16.19 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.617e-05/0.7998, allocations: 3.938 kB / 1.176 GB, free: 16.18 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.42e-05/0.7999, allocations: 9.719 kB / 1.176 GB, free: 16.18 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002468/0.8001, allocations: 51.69 kB / 1.176 GB, free: 16.14 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.49e-05/0.8002, allocations: 65.94 kB / 1.177 GB, free: 16.12 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.922e-05/0.8003, allocations: 18.66 kB / 1.177 GB, free: 16.11 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.461e-05/0.8004, allocations: 27.28 kB / 1.177 GB, free: 16.09 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.908e-05/0.8005, allocations: 33.66 kB / 1.177 GB, free: 16.08 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.8005, allocations: 5.844 kB / 1.177 GB, free: 16.08 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.624e-05/0.8006, allocations: 24.38 kB / 1.177 GB, free: 16.07 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.23e-05/0.8006, allocations: 17.64 kB / 1.177 GB, free: 16.06 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.629e-05/0.8006, allocations: 26.33 kB / 1.177 GB, free: 16.04 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001438/0.8008, allocations: 83.86 kB / 1.177 GB, free: 16.01 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.8008, allocations: 4 kB / 1.177 GB, free: 16 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.423e-06/0.8008, allocations: 0 / 1.177 GB, free: 16 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.8008, allocations: 1.5 kB / 1.177 GB, free: 16 MB / 0.92 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.0005014/0.8013, allocations: 378.8 kB / 1.177 GB, free: 15.63 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.8014, allocations: 11.06 kB / 1.177 GB, free: 15.63 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.748e-05/0.8014, allocations: 37.78 kB / 1.177 GB, free: 15.59 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.014e-05/0.8014, allocations: 9.094 kB / 1.177 GB, free: 15.58 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.019e-05/0.8015, allocations: 167.9 kB / 1.177 GB, free: 15.38 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.8015, allocations: 11.66 kB / 1.177 GB, free: 15.38 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.8015, allocations: 6.297 kB / 1.177 GB, free: 15.38 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.8017, allocations: 81.19 kB / 1.177 GB, free: 15.33 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.8018, allocations: 4.5 kB / 1.177 GB, free: 15.32 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.8018, allocations: 5.891 kB / 1.177 GB, free: 15.32 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.8018, allocations: 1.5 kB / 1.177 GB, free: 15.32 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.802, allocations: 48.55 kB / 1.177 GB, free: 15.31 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004169/0.8024, allocations: 321.2 kB / 1.178 GB, free: 15.01 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/0.8026, allocations: 84.53 kB / 1.178 GB, free: 14.96 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.8027, allocations: 39.7 kB / 1.178 GB, free: 14.95 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.8028, allocations: 2.031 kB / 1.178 GB, free: 14.95 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.803, allocations: 90.78 kB / 1.178 GB, free: 14.88 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.803, allocations: 1.062 kB / 1.178 GB, free: 14.88 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0004731/0.8035, allocations: 176.5 kB / 1.178 GB, free: 14.81 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.8035, allocations: 58.66 kB / 1.178 GB, free: 14.74 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.474e-05/0.8036, allocations: 113.2 kB / 1.178 GB, free: 14.63 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.8036, allocations: 32.67 kB / 1.178 GB, free: 14.6 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.707e-05/0.8036, allocations: 83.95 kB / 1.178 GB, free: 14.51 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.8037, allocations: 30.5 kB / 1.178 GB, free: 14.49 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.701e-05/0.8037, allocations: 34.69 kB / 1.178 GB, free: 14.46 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 4.434e-05/0.8038, allocations: 323.3 kB / 1.179 GB, free: 14.14 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.8039, allocations: 35.97 kB / 1.179 GB, free: 14.13 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.804, allocations: 67.16 kB / 1.179 GB, free: 14.09 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.8043, allocations: 97.5 kB / 1.179 GB, free: 14.04 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.8043, allocations: 0.7969 kB / 1.179 GB, free: 14.04 MB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003056/0.8046, allocations: 149.5 kB / 1.179 GB, free: 13.97 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.8046, allocations: 6.094 kB / 1.179 GB, free: 13.97 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.8046, allocations: 5.328 kB / 1.179 GB, free: 13.96 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.8046, allocations: 1.859 kB / 1.179 GB, free: 13.96 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.8048, allocations: 19.3 kB / 1.179 GB, free: 13.96 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.8048, allocations: 1.641 kB / 1.179 GB, free: 13.96 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.343e-05/0.8049, allocations: 19.47 kB / 1.179 GB, free: 13.95 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.8049, allocations: 4.625 kB / 1.179 GB, free: 13.95 MB / 0.92 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 6.15e-05/0.8049, allocations: 135.2 kB / 1.179 GB, free: 13.82 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.805, allocations: 6.984 kB / 1.179 GB, free: 13.82 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003346/0.8053, allocations: 139.7 kB / 1.179 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.8053, allocations: 1.188 kB / 1.179 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.8053, allocations: 0 / 1.179 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.8053, allocations: 1.734 kB / 1.179 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004516/0.8058, allocations: 413.2 kB / 1.18 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.8058, allocations: 0 / 1.18 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.118e-05/0.8059, allocations: 11.28 kB / 1.18 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.8059, allocations: 1.156 kB / 1.18 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.8059, allocations: 6.609 kB / 1.18 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.8059, allocations: 3.938 kB / 1.18 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.8059, allocations: 1.531 kB / 1.18 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.8063, allocations: 238.1 kB / 1.18 GB, free: 13.23 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 1.93e-05/0.8063, allocations: 83.78 kB / 1.18 GB, free: 13.13 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.8063, allocations: 6.672 kB / 1.18 GB, free: 13.13 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.8064, allocations: 12.06 kB / 1.18 GB, free: 13.12 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.8065, allocations: 10.89 kB / 1.18 GB, free: 13.12 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.8065, allocations: 2.844 kB / 1.18 GB, free: 13.12 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.622e-05/0.8065, allocations: 94.45 kB / 1.18 GB, free: 13.04 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8065, allocations: 0 / 1.18 GB, free: 13.04 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002536/0.8068, allocations: 24.95 kB / 1.18 GB, free: 13.03 MB / 0.92 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.0004913/0.8073, allocations: 0.7709 MB / 1.181 GB, free: 12.34 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003008/0.8076, allocations: 102 kB / 1.181 GB, free: 12.31 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8076, allocations: 0 / 1.181 GB, free: 12.31 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.8077, allocations: 43.83 kB / 1.181 GB, free: 12.3 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.808, allocations: 14.11 kB / 1.181 GB, free: 12.29 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.8094, allocations: 1.503 MB / 1.183 GB, free: 10.98 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.631e-05/0.8095, allocations: 0.6859 MB / 1.183 GB, free: 10.29 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.896e-05/0.8095, allocations: 11.77 kB / 1.183 GB, free: 10.28 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.8096, allocations: 17.62 kB / 1.183 GB, free: 10.27 MB / 0.92 GB Notification: Performance of SimCode: time 3.1e-07/0.8096, allocations: 0 / 1.183 GB, free: 10.27 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.8312, allocations: 2.055 MB / 1.185 GB, free: 9.855 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/9.082, allocations: 18.39 kB / 1.185 GB, free: 9.84 MB / 0.92 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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: 14.857397452928126]