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.001924/0.001924, allocations: 102.7 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.002314/0.002314, allocations: 210.4 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.545/1.545, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.208/3.208, allocations: 0.49 GB / 0.7916 GB, free: 33.46 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.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: 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.002105/0.002105, allocations: 81.97 kB / 1.149 GB, free: 26.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3923, allocations: 176.1 MB / 1.321 GB, free: 3.359 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002106/0.3944, allocations: 0.6881 MB / 1.321 GB, free: 2.672 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001601/0.396, allocations: 1.112 MB / 1.323 GB, free: 1.547 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.938e-05/0.3961, allocations: 0 / 1.323 GB, free: 1.547 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.368e-05/0.3961, allocations: 3.938 kB / 1.323 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.511e-05/0.3962, allocations: 11.94 kB / 1.323 GB, free: 1.531 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003468/0.3965, allocations: 39.83 kB / 1.323 GB, free: 1.492 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.3967, allocations: 55.84 kB / 1.323 GB, free: 1.438 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.3968, allocations: 7.984 kB / 1.323 GB, free: 1.43 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.984e-05/0.3969, allocations: 27.91 kB / 1.323 GB, free: 1.402 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.841e-05/0.3969, allocations: 23.91 kB / 1.323 GB, free: 1.379 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.3969, allocations: 4 kB / 1.323 GB, free: 1.375 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.684e-05/0.397, allocations: 23.98 kB / 1.323 GB, free: 1.352 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.092e-05/0.397, allocations: 7.938 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.917e-05/0.3971, allocations: 27.91 kB / 1.323 GB, free: 1.316 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.3973, allocations: 68 kB / 1.323 GB, free: 1.25 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3973, allocations: 0 / 1.323 GB, free: 1.25 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.154e-06/0.3973, allocations: 0 / 1.323 GB, free: 1.25 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.3973, allocations: 3.938 kB / 1.323 GB, free: 1.246 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006987/0.398, allocations: 363.3 kB / 1.323 GB, free: 0.8398 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.398, allocations: 15.98 kB / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.317e-05/0.3981, allocations: 34.75 kB / 1.323 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.149e-05/0.3982, allocations: 12.89 kB / 1.323 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.3983, allocations: 176.3 kB / 1.323 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.3984, allocations: 384 / 1.323 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.3984, allocations: 8.375 kB / 1.323 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.3986, allocations: 62.22 kB / 1.323 GB, free: 496 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3986, allocations: 3.938 kB / 1.323 GB, free: 492 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.3986, allocations: 4 kB / 1.323 GB, free: 488 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.3986, allocations: 0 / 1.323 GB, free: 488 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.3988, allocations: 51.89 kB / 1.324 GB, free: 436 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005401/0.3994, allocations: 276.8 kB / 1.324 GB, free: 108 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.3996, allocations: 54.55 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.3997, allocations: 28.97 kB / 1.324 GB, free: 12 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.3997, allocations: 4 kB / 1.324 GB, free: 8 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.3999, allocations: 83.25 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.3999, allocations: 0 / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004422/0.4004, allocations: 125.5 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.4005, allocations: 51.41 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.4006, allocations: 117.8 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.4006, allocations: 29.7 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.026e-05/0.4006, allocations: 80.14 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.4007, allocations: 31.84 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.507e-05/0.4007, allocations: 21.72 kB / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4009, allocations: 322.8 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.401, allocations: 23.92 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.4011, allocations: 64.27 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.4013, allocations: 96.19 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4013, allocations: 0 / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003061/0.4017, allocations: 113.5 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.4017, allocations: 4 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4017, allocations: 4 kB / 1.325 GB, free: 14.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.4017, allocations: 0 / 1.325 GB, free: 14.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.4018, allocations: 20.11 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.4018, allocations: 4 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.753e-05/0.4019, allocations: 11.94 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.4019, allocations: 8 kB / 1.325 GB, free: 14.72 MB / 1.029 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 0.0001238/0.402, allocations: 121.7 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.726e-05/0.4021, allocations: 7.984 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003198/0.4024, allocations: 102.3 kB / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4024, allocations: 4 kB / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.4024, allocations: 0 / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4024, allocations: 4.031 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005471/0.4029, allocations: 366.4 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4029, allocations: 0 / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.637e-05/0.403, allocations: 11.98 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.403, allocations: 4 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.403, allocations: 4 kB / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.403, allocations: 0 / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.403, allocations: 0 / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003634/0.4034, allocations: 203.3 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.4035, allocations: 85.19 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.4035, allocations: 4 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.4036, allocations: 19.92 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.78e-05/0.4037, allocations: 11.92 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.4037, allocations: 256 / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.329e-05/0.4037, allocations: 87.28 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4037, allocations: 0 / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002631/0.404, allocations: 12 kB / 1.326 GB, free: 13.58 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: 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.0008373/0.4048, allocations: 0.7358 MB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003199/0.4052, allocations: 67.89 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4052, allocations: 0 / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.4053, allocations: 31.97 kB / 1.327 GB, free: 12.72 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.4056, allocations: 18.38 kB / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.4077, allocations: 1.427 MB / 1.328 GB, free: 11.18 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/0.4081, allocations: 0.6807 MB / 1.329 GB, free: 10.47 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.783e-05/0.4082, allocations: 4 kB / 1.329 GB, free: 10.46 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.575e-05/0.4082, allocations: 19.42 kB / 1.329 GB, free: 10.45 MB / 1.029 GB Notification: Performance of SimCode: time 9.82e-07/0.4082, allocations: 4 kB / 1.329 GB, free: 10.44 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.4349, allocations: 1.834 MB / 1.331 GB, free: 8.723 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.104/8.539, allocations: 12.73 kB / 1.331 GB, free: 8.711 MB / 1.029 GB " [Timeout remaining time 291] (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/jenkins1/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: 15.313543068943545]