Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Sources.Validation.Pulse,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.001909/0.001909, allocations: 108 kB / 15.61 MB, free: 148 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.002216/0.002216, allocations: 196.4 kB / 16.53 MB, free: 6.656 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.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.427/2.427, allocations: 390.2 MB / 0.6647 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 67.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6425/0.6439, allocations: 140.4 MB / 0.9498 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse): time 0.001734/0.6456, allocations: 0.7142 MB / 0.9505 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001144/0.6468, allocations: 1.128 MB / 0.9516 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.763e-05/0.6469, allocations: 0 / 0.9516 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.008e-05/0.6469, allocations: 7.938 kB / 0.9516 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.853e-05/0.647, allocations: 13.06 kB / 0.9516 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.6474, allocations: 124.8 kB / 0.9517 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.6476, allocations: 141.9 kB / 0.9518 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.466e-05/0.6477, allocations: 6.75 kB / 0.9518 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.656e-05/0.6478, allocations: 49.66 kB / 0.9519 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.099e-05/0.6479, allocations: 36.14 kB / 0.9519 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.6479, allocations: 12.62 kB / 0.9519 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.385e-05/0.648, allocations: 22.45 kB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.874e-05/0.648, allocations: 18.2 kB / 0.952 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.839e-05/0.6481, allocations: 36.2 kB / 0.952 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001724/0.6482, allocations: 140.7 kB / 0.9521 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.6483, allocations: 0 / 0.9521 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.6483, allocations: 0 / 0.9521 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.6483, allocations: 0.875 kB / 0.9521 GB, free: 7.316 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003978/0.6487, allocations: 396.9 kB / 0.9525 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.6487, allocations: 9.219 kB / 0.9525 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.605e-05/0.6488, allocations: 35.86 kB / 0.9526 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.957e-05/0.6488, allocations: 10.47 kB / 0.9526 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.297e-05/0.6489, allocations: 184.6 kB / 0.9527 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.6489, allocations: 2.688 kB / 0.9527 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.087e-05/0.6489, allocations: 6.406 kB / 0.9528 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.46e-05/0.649, allocations: 45.5 kB / 0.9528 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.6491, allocations: 7.922 kB / 0.9528 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/0.6491, allocations: 8 kB / 0.9528 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.6491, allocations: 1.219 kB / 0.9528 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.398e-05/0.6491, allocations: 10.38 kB / 0.9528 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003652/0.6495, allocations: 326.9 kB / 0.9531 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.467e-05/0.6496, allocations: 30.2 kB / 0.9532 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.506e-05/0.6496, allocations: 17.25 kB / 0.9532 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.6496, allocations: 11.92 kB / 0.9532 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001251/0.6497, allocations: 60.61 kB / 0.9532 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.6498, allocations: 1.156 kB / 0.9532 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001914/0.6499, allocations: 72.38 kB / 0.9533 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.65, allocations: 58.06 kB / 0.9534 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.191e-05/0.6501, allocations: 126.1 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.6501, allocations: 28.36 kB / 0.9535 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.375e-05/0.6502, allocations: 91.73 kB / 0.9536 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.238e-05/0.6502, allocations: 5.344 kB / 0.9536 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.6502, allocations: 38.47 kB / 0.9536 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.368e-05/0.6503, allocations: 316.4 kB / 0.954 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.379e-05/0.6504, allocations: 37.73 kB / 0.954 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.76e-05/0.6505, allocations: 60.34 kB / 0.954 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.6506, allocations: 96.11 kB / 0.9541 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.6506, allocations: 0 / 0.9541 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002515/0.6509, allocations: 161.3 kB / 0.9543 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.6509, allocations: 35.05 kB / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.6509, allocations: 0 / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.6509, allocations: 1.219 kB / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.91e-05/0.651, allocations: 6.656 kB / 0.9543 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.651, allocations: 1.094 kB / 0.9543 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.6512, allocations: 39.86 kB / 0.9544 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.6512, allocations: 10.22 kB / 0.9544 GB, free: 5.074 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 7.378e-05/0.6513, allocations: 118.9 kB / 0.9545 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.6513, allocations: 6.031 kB / 0.9545 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.35e-05/0.6514, allocations: 9.328 kB / 0.9545 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.6514, allocations: 1.75 kB / 0.9545 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.6514, allocations: 0 / 0.9545 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.6514, allocations: 4 kB / 0.9545 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.553e-05/0.6515, allocations: 180.1 kB / 0.9547 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.6515, allocations: 0 / 0.9547 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.659e-05/0.6515, allocations: 10.14 kB / 0.9547 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.6515, allocations: 0 / 0.9547 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.6515, allocations: 5.125 kB / 0.9547 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.6515, allocations: 1.125 kB / 0.9547 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.6516, allocations: 0 / 0.9547 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.847e-05/0.6517, allocations: 95.19 kB / 0.9548 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.214e-05/0.6517, allocations: 82.22 kB / 0.9549 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.6517, allocations: 1.062 kB / 0.9549 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.867e-05/0.6517, allocations: 1.125 kB / 0.9549 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.6518, allocations: 1.156 kB / 0.9549 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.6518, allocations: 2.219 kB / 0.9549 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.529e-05/0.6518, allocations: 98.61 kB / 0.955 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6518, allocations: 0 / 0.955 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002174/0.652, allocations: 20.72 kB / 0.955 GB, free: 4.43 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003029/0.6524, allocations: 0.6397 MB / 0.9556 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002026/0.6526, allocations: 138.2 kB / 0.9557 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.6526, allocations: 0 / 0.9557 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.226e-05/0.6526, allocations: 18.22 kB / 0.9558 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002314/0.6528, allocations: 20.14 kB / 0.9558 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.6541, allocations: 1.49 MB / 0.9572 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.6542, allocations: 0.6891 MB / 0.9579 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.34e-05/0.6543, allocations: 3.625 kB / 0.9579 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.138e-05/0.6543, allocations: 21.98 kB / 0.9579 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.6543, allocations: 0 / 0.9579 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.6717, allocations: 2.328 MB / 0.9602 GB, free: 376 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.097/7.769, allocations: 10.11 kB / 0.9602 GB, free: 368 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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_Continuous_Sources_Validation_Pulse.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches