Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Integers.Sources.Validation.Pulse,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_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.008302/0.008302, allocations: 98.97 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.002005/0.002005, allocations: 201.3 kB / 16.68 MB, free: 5.926 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.691/1.691, 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 9.1.3-maint.9.1.x/package.mo): time 2.464/2.464, allocations: 390.3 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 67.89 kB / 0.9504 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9329/0.9344, allocations: 140.4 MB / 1.087 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.002035/0.9365, allocations: 0.9737 MB / 1.088 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.9381, allocations: 1.431 MB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.013e-05/0.9382, allocations: 1.312 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.96e-05/0.9383, allocations: 17.88 kB / 1.09 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.9384, allocations: 59.69 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.9395, allocations: 445 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005665/0.9401, allocations: 0.5184 MB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.9402, allocations: 42.03 kB / 1.091 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002114/0.9404, allocations: 186.6 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.9407, allocations: 167.9 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.251e-05/0.9408, allocations: 50.09 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.9409, allocations: 58.27 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.34e-05/0.941, allocations: 38.03 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.9412, allocations: 167.5 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006245/0.9418, allocations: 0.4898 MB / 1.092 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.9418, allocations: 0 / 1.092 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9418, allocations: 4 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.9419, allocations: 1.125 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007459/0.9426, allocations: 0.6362 MB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.9427, allocations: 9.922 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.451e-05/0.9427, allocations: 39.62 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.737e-05/0.9428, allocations: 32.62 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.943, allocations: 228.1 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.943, allocations: 20.19 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.824e-05/0.9431, allocations: 23.02 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.9433, allocations: 125.5 kB / 1.093 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.9433, allocations: 0.8438 kB / 1.093 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.9433, allocations: 5.5 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.9433, allocations: 2.344 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001088/0.9434, allocations: 52.92 kB / 1.093 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008939/0.9443, allocations: 0.8735 MB / 1.094 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.9445, allocations: 121.1 kB / 1.094 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.011e-05/0.9446, allocations: 50.09 kB / 1.094 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.9446, allocations: 2.453 kB / 1.094 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002992/0.9449, allocations: 173.8 kB / 1.094 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.9449, allocations: 0 / 1.094 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.0004841/0.9454, allocations: 238.5 kB / 1.095 GB, free: 484 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.9454, allocations: 134 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.9457, allocations: 239.8 kB / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.827e-05/0.9457, allocations: 38.05 kB / 1.095 GB, free: 132 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.606e-05/0.9459, allocations: 136 kB / 1.095 GB, free: 12 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.502e-05/0.9459, allocations: 39.3 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.9461, allocations: 93.36 kB / 1.095 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.9463, allocations: 335.1 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/0.9466, allocations: 140.5 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000427/0.9471, allocations: 227.9 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005154/0.9476, allocations: 367.7 kB / 1.096 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.9476, allocations: 1.031 kB / 1.096 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001076/0.9487, allocations: 0.5551 MB / 1.097 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.9488, allocations: 137 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.9488, allocations: 3.062 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.9488, allocations: 8.672 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.455e-05/0.9489, allocations: 10.78 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.9489, allocations: 8.172 kB / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007314/0.9497, allocations: 112.3 kB / 1.097 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.006e-05/0.9498, allocations: 28.53 kB / 1.097 GB, free: 14.61 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,pul3.booPul.y,$PRE.pul3.booPul.y,pul3.y,$whenCondition5,$whenCondition6,pul1.booPul.y,$PRE.pul1.booPul.y,pul1.y,$whenCondition3,$whenCondition4,pul2.booPul.y,$PRE.pul2.booPul.y,pul2.y,$whenCondition1,$whenCondition2,pul.booPul.y,$PRE.pul.booPul.y,pul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * 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.0001809/0.9499, allocations: 144.1 kB / 1.097 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.788e-05/0.95, allocations: 27.36 kB / 1.097 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.093e-05/0.9501, allocations: 20.64 kB / 1.097 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.9501, allocations: 6.781 kB / 1.097 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.9501, allocations: 5.688 kB / 1.097 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.9501, allocations: 1.766 kB / 1.097 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/0.9504, allocations: 257.9 kB / 1.097 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.9504, allocations: 5.281 kB / 1.097 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.573e-05/0.9505, allocations: 14.23 kB / 1.098 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.9505, allocations: 1.688 kB / 1.098 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.9505, allocations: 11.45 kB / 1.098 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.9505, allocations: 2.344 kB / 1.098 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.9505, allocations: 1.531 kB / 1.098 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003361/0.9509, allocations: 223.4 kB / 1.098 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/0.951, allocations: 102.1 kB / 1.098 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/0.951, allocations: 6.891 kB / 1.098 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.763e-05/0.9511, allocations: 7.594 kB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.9511, allocations: 14.95 kB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.9511, allocations: 11.56 kB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001616/0.9513, allocations: 164.6 kB / 1.098 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9513, allocations: 0 / 1.098 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003816/0.9517, allocations: 73.05 kB / 1.098 GB, free: 13.82 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition7,$whenCondition8,pul3.y,pul3.booPul.y,$whenCondition5,$whenCondition6,pul1.y,pul1.booPul.y,$whenCondition3,$whenCondition4,pul2.y,pul2.booPul.y,$whenCondition1,$whenCondition2,pul.y,pul.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000674/0.9524, allocations: 0.7694 MB / 1.099 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008567/0.9532, allocations: 0.5251 MB / 1.099 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.9533, allocations: 1.312 kB / 1.099 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.9534, allocations: 68.25 kB / 1.099 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.9539, allocations: 65.38 kB / 1.099 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004538/0.9585, allocations: 3.018 MB / 1.102 GB, free: 10.56 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.9588, allocations: 0.7297 MB / 1.103 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001138/0.9589, allocations: 18.88 kB / 1.103 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.959, allocations: 59.69 kB / 1.103 GB, free: 9.812 MB / 0.8731 GB Notification: Performance of SimCode: time 4.81e-07/0.959, allocations: 0 / 1.103 GB, free: 9.812 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.9855, allocations: 6.399 MB / 1.109 GB, free: 9.098 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.351/9.337, allocations: 10.27 kB / 1.109 GB, free: 9.094 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches