Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005718/0.005718, allocations: 102.1 kB / 15.73 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 190.8 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.385/2.385, allocations: 482.6 MB / 0.7551 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 63.98 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2479, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001559/0.2495, allocations: 0.6736 MB / 1.242 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001165/0.2507, allocations: 1.059 MB / 1.244 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.694e-05/0.2508, allocations: 0 / 1.244 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.342e-05/0.2508, allocations: 3.938 kB / 1.244 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.003e-05/0.2509, allocations: 3.938 kB / 1.244 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002228/0.2511, allocations: 35.89 kB / 1.244 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.705e-05/0.2512, allocations: 55.78 kB / 1.244 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.401e-05/0.2513, allocations: 8 kB / 1.244 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.502e-05/0.2513, allocations: 15.98 kB / 1.244 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.658e-05/0.2514, allocations: 31.86 kB / 1.244 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.2514, allocations: 4 kB / 1.244 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.595e-05/0.2515, allocations: 15.97 kB / 1.244 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.045e-05/0.2515, allocations: 19.92 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.259e-05/0.2515, allocations: 15.88 kB / 1.244 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.2516, allocations: 56.06 kB / 1.244 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2517, allocations: 4 kB / 1.244 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2517, allocations: 0 / 1.244 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.2517, allocations: 0 / 1.244 GB, free: 6.93 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004577/0.2521, allocations: 373.1 kB / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.2522, allocations: 8.031 kB / 1.244 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.629e-05/0.2522, allocations: 38.73 kB / 1.244 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.242e-05/0.2522, allocations: 0.9375 kB / 1.244 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.2523, allocations: 168.3 kB / 1.244 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.2524, allocations: 4.375 kB / 1.244 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.2524, allocations: 4.375 kB / 1.244 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.2526, allocations: 62.22 kB / 1.244 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.2526, allocations: 3.938 kB / 1.244 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2526, allocations: 15.92 kB / 1.244 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.2526, allocations: 0 / 1.244 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.2528, allocations: 43.89 kB / 1.244 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004082/0.2532, allocations: 288.8 kB / 1.245 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.2534, allocations: 58.55 kB / 1.245 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.342e-05/0.2535, allocations: 28.97 kB / 1.245 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.2535, allocations: 3.984 kB / 1.245 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001793/0.2537, allocations: 71.33 kB / 1.245 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.2537, allocations: 0 / 1.245 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0003664/0.254, allocations: 121.6 kB / 1.245 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.2541, allocations: 55.41 kB / 1.245 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.669e-05/0.2542, allocations: 109.8 kB / 1.245 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.2542, allocations: 25.7 kB / 1.245 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.585e-05/0.2542, allocations: 92.09 kB / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.2543, allocations: 11.89 kB / 1.245 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.2543, allocations: 25.72 kB / 1.245 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.2544, allocations: 322.8 kB / 1.246 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.767e-05/0.2545, allocations: 27.92 kB / 1.246 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.2547, allocations: 56.27 kB / 1.246 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.2549, allocations: 100.2 kB / 1.246 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2549, allocations: 0 / 1.246 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002526/0.2551, allocations: 105.8 kB / 1.246 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2552, allocations: 13.86 kB / 1.246 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.2552, allocations: 3.938 kB / 1.246 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.2552, allocations: 0 / 1.246 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.442e-05/0.2553, allocations: 15.98 kB / 1.246 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.2553, allocations: 4.312 kB / 1.246 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.632e-05/0.2554, allocations: 15.89 kB / 1.246 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.2554, allocations: 4 kB / 1.246 GB, free: 4.43 MB / 0.9669 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 8.789e-05/0.2555, allocations: 129.7 kB / 1.246 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-06/0.2555, allocations: 0 / 1.246 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002497/0.2557, allocations: 102 kB / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2558, allocations: 0 / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.2558, allocations: 0 / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2558, allocations: 0 / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004126/0.2562, allocations: 362.8 kB / 1.247 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2562, allocations: 3.938 kB / 1.247 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.594e-05/0.2563, allocations: 8 kB / 1.247 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.2563, allocations: 3.984 kB / 1.247 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.2563, allocations: 4 kB / 1.247 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2563, allocations: 0 / 1.247 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.2563, allocations: 3.984 kB / 1.247 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.2566, allocations: 195.4 kB / 1.247 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.952e-05/0.2566, allocations: 85.05 kB / 1.247 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.2566, allocations: 4 kB / 1.247 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.639e-05/0.2567, allocations: 4 kB / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.2567, allocations: 7.922 kB / 1.247 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.2568, allocations: 4 kB / 1.247 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.166e-05/0.2568, allocations: 87.27 kB / 1.247 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2568, allocations: 0 / 1.247 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002304/0.2571, allocations: 23.98 kB / 1.247 GB, free: 3.316 MB / 0.9669 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0005457/0.2576, allocations: 0.7269 MB / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002318/0.2579, allocations: 67.89 kB / 1.248 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.2579, allocations: 4 kB / 1.248 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.258, allocations: 27.97 kB / 1.248 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.2582, allocations: 7.938 kB / 1.248 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.2596, allocations: 1.412 MB / 1.249 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.2599, allocations: 0.6924 MB / 1.25 GB, free: 232 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.568e-05/0.2599, allocations: 0 / 1.25 GB, free: 232 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.62e-05/0.26, allocations: 15.44 kB / 1.25 GB, free: 216 kB / 0.9669 GB Notification: Performance of SimCode: time 2.1e-07/0.26, allocations: 0 / 1.25 GB, free: 216 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.222/5.482, allocations: 1.79 MB / 1.252 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.05/22.53, allocations: 4.609 kB / 1.252 GB, free: 14.53 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches