Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.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.Logical.Sources.Validation.Pulse,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse",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.007464/0.007464, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.00188/0.00188, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.425/1.425, 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.81/2.81, allocations: 482.4 MB / 0.7548 GB, free: 6.875 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 77.16 kB / 1.083 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3051, allocations: 162.2 MB / 1.241 GB, free: 9.371 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse): time 0.002207/0.3073, allocations: 1.162 MB / 1.243 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002835/0.3102, allocations: 2.174 MB / 1.245 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.358e-05/0.3103, allocations: 0 / 1.245 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 6.443e-05/0.3104, allocations: 27.67 kB / 1.245 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.3106, allocations: 83.2 kB / 1.245 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003273/0.3139, allocations: 1.405 MB / 1.246 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001576/0.3155, allocations: 1.279 MB / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.363e-05/0.3156, allocations: 28.72 kB / 1.247 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006612/0.3162, allocations: 479.2 kB / 1.248 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006489/0.3169, allocations: 442.8 kB / 1.248 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.3171, allocations: 104 kB / 1.248 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002445/0.3174, allocations: 116 kB / 1.249 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.786e-05/0.3174, allocations: 67.75 kB / 1.249 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004683/0.3179, allocations: 395 kB / 1.249 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.319, allocations: 0.9585 MB / 1.25 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.319, allocations: 4 kB / 1.25 GB, free: 0.7109 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.322e-06/0.319, allocations: 0 / 1.25 GB, free: 0.7109 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.573e-05/0.319, allocations: 0 / 1.25 GB, free: 0.7109 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001439/0.3204, allocations: 1.183 MB / 1.251 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3205, allocations: 8.031 kB / 1.251 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.76e-05/0.3205, allocations: 42.73 kB / 1.251 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.3207, allocations: 68.73 kB / 1.251 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.3209, allocations: 224.6 kB / 1.251 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.725e-05/0.321, allocations: 36.36 kB / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3211, allocations: 72.3 kB / 1.252 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.3214, allocations: 214.8 kB / 1.252 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3215, allocations: 7.938 kB / 1.252 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.3215, allocations: 7.984 kB / 1.252 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.3215, allocations: 0 / 1.252 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.3216, allocations: 67.78 kB / 1.252 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009554/0.3226, allocations: 0.8484 MB / 1.253 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.323, allocations: 335.2 kB / 1.253 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.3232, allocations: 132.9 kB / 1.253 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.3232, allocations: 15.92 kB / 1.253 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006953/0.3239, allocations: 458.8 kB / 1.254 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=45): time 1.984e-06/0.3239, allocations: 0 / 1.254 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of matching and sorting (n=45): time 0.001103/0.325, allocations: 0.5692 MB / 1.254 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002413/0.3252, allocations: 439.2 kB / 1.255 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.3255, allocations: 292.4 kB / 1.255 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.000141/0.3257, allocations: 69.69 kB / 1.255 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.3259, allocations: 157.4 kB / 1.255 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.326, allocations: 103.2 kB / 1.255 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005061/0.3265, allocations: 274.1 kB / 1.255 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3267, allocations: 362.8 kB / 1.256 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008892/0.3276, allocations: 421.3 kB / 1.256 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.3287, allocations: 0.7028 MB / 1.257 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.3302, allocations: 1.195 MB / 1.258 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.3303, allocations: 4 kB / 1.258 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003037/0.3333, allocations: 1.729 MB / 1.26 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003328/0.3336, allocations: 481.4 kB / 1.26 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.3337, allocations: 8 kB / 1.26 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.819e-05/0.3337, allocations: 12 kB / 1.26 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.753e-05/0.3338, allocations: 31.86 kB / 1.26 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.2e-05/0.3338, allocations: 23.92 kB / 1.26 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/0.3361, allocations: 407.8 kB / 1.261 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002018/0.3363, allocations: 95.92 kB / 1.261 GB, free: 4.422 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 60 (booPul_c5.y,$PRE.booPul_c5.y,$whenCondition29,$whenCondition30,booPul_b5.y,$PRE.booPul_b5.y,$whenCondition27,$whenCondition28,booPul_a5.y,$PRE.booPul_a5.y,$whenCondition25,$whenCondition26,booPul_c4.y,$PRE.booPul_c4.y,$whenCondition23,$whenCondition24,booPul_b4.y,$PRE.booPul_b4.y,$whenCondition21,$whenCondition22,booPul_a4.y,$PRE.booPul_a4.y,$whenCondition19,$whenCondition20,booPul_c3.y,$PRE.booPul_c3.y,$whenCondition17,$whenCondition18,booPul_b3.y,$PRE.booPul_b3.y,$whenCondition15,$whenCondition16,booPul_a3.y,$PRE.booPul_a3.y,$whenCondition13,$whenCondition14,booPul_c2.y,$PRE.booPul_c2.y,$whenCondition11,$whenCondition12,booPul_b2.y,$PRE.booPul_b2.y,$whenCondition9,$whenCondition10,booPul_a2.y,$PRE.booPul_a2.y,$whenCondition7,$whenCondition8,booPul_c1.y,$PRE.booPul_c1.y,$whenCondition5,$whenCondition6,booPul_b1.y,$PRE.booPul_b1.y,$whenCondition3,$whenCondition4,booPul_a1.y,$PRE.booPul_a1.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 15 * 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.0003885/0.3367, allocations: 214.1 kB / 1.261 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3368, allocations: 51.69 kB / 1.261 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.682e-05/0.3369, allocations: 38.14 kB / 1.261 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3369, allocations: 8 kB / 1.261 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.337, allocations: 4 kB / 1.261 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.337, allocations: 7.984 kB / 1.261 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004154/0.3374, allocations: 329.4 kB / 1.261 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3374, allocations: 8 kB / 1.261 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.191e-05/0.3375, allocations: 19.86 kB / 1.261 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/0.3375, allocations: 8 kB / 1.261 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.3375, allocations: 23.92 kB / 1.261 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.644e-06/0.3375, allocations: 12 kB / 1.261 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.3375, allocations: 7.938 kB / 1.261 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007596/0.3383, allocations: 0.5161 MB / 1.262 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.43e-05/0.3384, allocations: 116.8 kB / 1.262 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.852e-05/0.3384, allocations: 15.98 kB / 1.262 GB, free: 2.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.3386, allocations: 12 kB / 1.262 GB, free: 2.906 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3387, allocations: 67.81 kB / 1.262 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.3387, allocations: 27.98 kB / 1.262 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.00019/0.3389, allocations: 191.1 kB / 1.262 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3389, allocations: 0 / 1.262 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006892/0.3396, allocations: 203.9 kB / 1.263 GB, free: 2.426 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition29,$whenCondition30,booPul_c5.y,$whenCondition27,$whenCondition28,booPul_b5.y,$whenCondition25,$whenCondition26,booPul_a5.y,$whenCondition23,$whenCondition24,booPul_c4.y,$whenCondition21,$whenCondition22,booPul_b4.y,$whenCondition19,$whenCondition20,booPul_a4.y,$whenCondition17,$whenCondition18,booPul_c3.y,$whenCondition15,$whenCondition16,booPul_b3.y,$whenCondition13,$whenCondition14,booPul_a3.y,$whenCondition11,$whenCondition12,booPul_c2.y,$whenCondition9,$whenCondition10,booPul_b2.y,$whenCondition7,$whenCondition8,booPul_a2.y,$whenCondition5,$whenCondition6,booPul_c1.y,$whenCondition3,$whenCondition4,booPul_b1.y,$whenCondition1,$whenCondition2,booPul_a1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 15 * 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.001127/0.3408, allocations: 1.085 MB / 1.264 GB, free: 1.27 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002362/0.3431, allocations: 1.754 MB / 1.265 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3431, allocations: 0 / 1.265 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.3435, allocations: 185.1 kB / 1.265 GB, free: 15.15 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008307/0.3443, allocations: 129 kB / 1.266 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009942/0.3543, allocations: 6.459 MB / 1.272 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.3547, allocations: 0.7761 MB / 1.273 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001556/0.3549, allocations: 42.97 kB / 1.273 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.3551, allocations: 107.4 kB / 1.273 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of SimCode: time 5.71e-07/0.3551, allocations: 0 / 1.273 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04106/0.3962, allocations: 14.86 MB / 1.287 GB, free: 8.508 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.5/8.897, allocations: 10.69 kB / 1.287 GB, free: 8.5 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches