Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) 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.Integers.Sources.Validation.Pulse,fileNamePrefix="Buildings_10_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_10_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.001269/0.001269, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.269/1.269, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.395/2.395, allocations: 437.1 MB / 0.7104 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 64.09 kB / 0.8694 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5215/0.5227, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.001888/0.5247, allocations: 0.9645 MB / 1.018 GB, free: 1.527 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.5261, allocations: 1.436 MB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.471e-05/0.5262, allocations: 0 / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.64e-05/0.5262, allocations: 19.75 kB / 1.02 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.5263, allocations: 47.56 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008907/0.5272, allocations: 450.6 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004078/0.5277, allocations: 0.5107 MB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.5278, allocations: 49.66 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.5279, allocations: 175.6 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.5281, allocations: 143.5 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.171e-05/0.5282, allocations: 52 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.5283, allocations: 63.98 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.529e-05/0.5283, allocations: 35.84 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.5285, allocations: 167.4 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003888/0.5289, allocations: 496.9 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.5289, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.283e-06/0.5289, allocations: 4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.5289, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 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.0006441/0.5296, allocations: 0.6301 MB / 1.023 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.5296, allocations: 12.03 kB / 1.023 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.294e-05/0.5296, allocations: 38.73 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.007e-05/0.5297, allocations: 32.66 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.5299, allocations: 226.9 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.5299, allocations: 20.31 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.53, allocations: 24.36 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.5302, allocations: 118.8 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.5302, allocations: 3.938 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.5302, allocations: 8 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.5302, allocations: 0 / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.5303, allocations: 55.91 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000788/0.5311, allocations: 0.8756 MB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.5313, allocations: 130.3 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.519e-05/0.5313, allocations: 51.48 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.943e-06/0.5313, allocations: 0 / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.5316, allocations: 174.7 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.475e-06/0.5316, allocations: 0 / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.0004/0.532, allocations: 225.2 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/0.532, allocations: 140.5 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.5323, allocations: 244.9 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.859e-05/0.5323, allocations: 37.7 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.381e-05/0.5324, allocations: 128.5 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.146e-05/0.5324, allocations: 35.55 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.5326, allocations: 89.66 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.606e-05/0.5327, allocations: 334.8 kB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.533, allocations: 140.2 kB / 1.026 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003123/0.5333, allocations: 231.8 kB / 1.026 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003862/0.5337, allocations: 368.9 kB / 1.026 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5337, allocations: 0 / 1.026 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000851/0.5346, allocations: 0.5506 MB / 1.027 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.292e-05/0.5347, allocations: 138.8 kB / 1.027 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.5347, allocations: 0 / 1.027 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.5347, allocations: 4.938 kB / 1.027 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.609e-05/0.5348, allocations: 19.94 kB / 1.027 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.088e-06/0.5348, allocations: 7.984 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006715/0.5354, allocations: 115.9 kB / 1.027 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.695e-05/0.5355, allocations: 23.97 kB / 1.027 GB, free: 8.238 MB / 0.7794 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.000134/0.5356, allocations: 153.8 kB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.87e-05/0.5357, allocations: 15.81 kB / 1.027 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.647e-05/0.5357, allocations: 21.23 kB / 1.027 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.5357, allocations: 4 kB / 1.027 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.5357, allocations: 4 kB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.5357, allocations: 15.86 kB / 1.027 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/0.5359, allocations: 261.4 kB / 1.027 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.536, allocations: 4 kB / 1.027 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.664e-05/0.536, allocations: 11.94 kB / 1.027 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.536, allocations: 3.938 kB / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.536, allocations: 8 kB / 1.027 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.536, allocations: 3.984 kB / 1.027 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.536, allocations: 4 kB / 1.027 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.5363, allocations: 216.6 kB / 1.028 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.316e-05/0.5363, allocations: 100.8 kB / 1.028 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.5364, allocations: 8 kB / 1.028 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.936e-05/0.5364, allocations: 4 kB / 1.028 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.936e-05/0.5365, allocations: 19.91 kB / 1.028 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.5365, allocations: 8 kB / 1.028 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001285/0.5366, allocations: 168.5 kB / 1.028 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5366, allocations: 0 / 1.028 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003062/0.5369, allocations: 67.94 kB / 1.028 GB, free: 7.055 MB / 0.7794 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.0005011/0.5374, allocations: 0.7631 MB / 1.029 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006131/0.5381, allocations: 0.5368 MB / 1.029 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5381, allocations: 0 / 1.029 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.407e-05/0.5382, allocations: 63.92 kB / 1.029 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004154/0.5386, allocations: 72.36 kB / 1.029 GB, free: 5.535 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003297/0.5419, allocations: 2.991 MB / 1.032 GB, free: 2.359 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.5422, allocations: 0.732 MB / 1.033 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.114e-05/0.5422, allocations: 29.47 kB / 1.033 GB, free: 1.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.229e-05/0.5423, allocations: 55.42 kB / 1.033 GB, free: 1.516 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.5423, allocations: 0 / 1.033 GB, free: 1.516 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.5644, allocations: 6.36 MB / 1.039 GB, free: 11.3 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.811/7.375, allocations: 5.906 kB / 1.039 GB, free: 11.3 MB / 0.795 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches