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.001126/0.001126, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001069/0.001069, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.132/1.132, allocations: 222.9 MB / 239.9 MB, free: 4.531 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 1.961/1.961, allocations: 390.2 MB / 0.6644 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 71.88 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4487/0.4499, allocations: 140.4 MB / 0.9493 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse): time 0.001503/0.4514, allocations: 0.7849 MB / 0.95 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009611/0.4524, allocations: 1.123 MB / 0.9511 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.195e-05/0.4525, allocations: 0 / 0.9511 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.602e-05/0.4525, allocations: 3.984 kB / 0.9511 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.602e-05/0.4526, allocations: 5.938 kB / 0.9511 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003975/0.453, allocations: 118.4 kB / 0.9512 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.4531, allocations: 137.7 kB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.175e-05/0.4532, allocations: 14.3 kB / 0.9514 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.591e-05/0.4533, allocations: 50 kB / 0.9514 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.166e-05/0.4533, allocations: 28.25 kB / 0.9515 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.4534, allocations: 13.53 kB / 0.9515 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.996e-05/0.4534, allocations: 30.27 kB / 0.9515 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.542e-05/0.4534, allocations: 13.36 kB / 0.9515 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.691e-05/0.4535, allocations: 39.5 kB / 0.9516 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.4536, allocations: 133.4 kB / 0.9517 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.4536, allocations: 5.312 kB / 0.9517 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4537, allocations: 0 / 0.9517 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.548e-06/0.4537, allocations: 0 / 0.9517 GB, free: 7.25 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.0003281/0.454, allocations: 392.4 kB / 0.9521 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.454, allocations: 9.625 kB / 0.9521 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.064e-05/0.4541, allocations: 32.12 kB / 0.9521 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.4541, allocations: 18.33 kB / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.376e-05/0.4542, allocations: 177.2 kB / 0.9523 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.4542, allocations: 2.531 kB / 0.9523 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.4542, allocations: 9.844 kB / 0.9523 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.04e-05/0.4543, allocations: 41.12 kB / 0.9523 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.4543, allocations: 4.906 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-06/0.4543, allocations: 0 / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.4543, allocations: 1.062 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.518e-05/0.4544, allocations: 18.55 kB / 0.9524 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002823/0.4547, allocations: 331.3 kB / 0.9527 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.501e-05/0.4547, allocations: 29.05 kB / 0.9527 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.841e-05/0.4547, allocations: 9.797 kB / 0.9527 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.302e-06/0.4547, allocations: 0 / 0.9527 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.122e-05/0.4548, allocations: 89.27 kB / 0.9528 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.041e-06/0.4549, allocations: 0 / 0.9528 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001614/0.455, allocations: 72.59 kB / 0.9529 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.937e-05/0.455, allocations: 52.72 kB / 0.9529 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.147e-05/0.4551, allocations: 127.9 kB / 0.953 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.4551, allocations: 27.73 kB / 0.9531 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.151e-05/0.4552, allocations: 88.73 kB / 0.9532 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.065e-05/0.4552, allocations: 5.438 kB / 0.9532 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.239e-05/0.4552, allocations: 29.61 kB / 0.9532 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.163e-05/0.4553, allocations: 327.9 kB / 0.9535 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.208e-05/0.4554, allocations: 38.39 kB / 0.9535 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.336e-05/0.4554, allocations: 54.66 kB / 0.9536 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.726e-05/0.4555, allocations: 88.77 kB / 0.9537 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4555, allocations: 0 / 0.9537 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002134/0.4558, allocations: 164.8 kB / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.4558, allocations: 43.41 kB / 0.9539 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.4558, allocations: 1.25 kB / 0.9539 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.4558, allocations: 1.125 kB / 0.9539 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.048e-05/0.4559, allocations: 5.906 kB / 0.9539 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.4559, allocations: 1.219 kB / 0.9539 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.4561, allocations: 41.06 kB / 0.9539 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.4561, allocations: 4.406 kB / 0.9539 GB, free: 5.016 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 5.331e-05/0.4561, allocations: 123.8 kB / 0.954 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.4561, allocations: 6.75 kB / 0.9541 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.757e-05/0.4562, allocations: 5.094 kB / 0.9541 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4562, allocations: 3.984 kB / 0.9541 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.4562, allocations: 5.156 kB / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.4562, allocations: 0 / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.569e-05/0.4563, allocations: 176.3 kB / 0.9542 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.4563, allocations: 0 / 0.9542 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.402e-05/0.4563, allocations: 1.312 kB / 0.9542 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.4563, allocations: 5.156 kB / 0.9542 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.4563, allocations: 5.578 kB / 0.9542 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4563, allocations: 8 kB / 0.9543 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.4563, allocations: 0 / 0.9543 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.158e-05/0.4564, allocations: 95.66 kB / 0.9543 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.609e-05/0.4564, allocations: 78.11 kB / 0.9544 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.4564, allocations: 5.203 kB / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.763e-05/0.4565, allocations: 0 / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.8e-05/0.4565, allocations: 6.281 kB / 0.9544 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.4565, allocations: 1.125 kB / 0.9544 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.52e-05/0.4565, allocations: 99.45 kB / 0.9545 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4565, allocations: 0 / 0.9545 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001943/0.4567, allocations: 20.16 kB / 0.9545 GB, free: 4.363 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.0002266/0.457, allocations: 0.6362 MB / 0.9552 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001743/0.4571, allocations: 133.5 kB / 0.9553 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.4572, allocations: 0 / 0.9553 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.393e-05/0.4572, allocations: 21.83 kB / 0.9553 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.4574, allocations: 16.58 kB / 0.9553 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.4584, allocations: 1.502 MB / 0.9568 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.34e-05/0.4585, allocations: 0.691 MB / 0.9575 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.31e-05/0.4585, allocations: 2.844 kB / 0.9575 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.768e-05/0.4586, allocations: 25.92 kB / 0.9575 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of SimCode: time 3.61e-07/0.4586, allocations: 1.188 kB / 0.9575 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.72/3.178, allocations: 2.248 MB / 0.9597 GB, free: 420 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002354/3.178, allocations: 214.8 kB / 0.9599 GB, free: 160 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.09/7.269, allocations: 4 kB / 0.9599 GB, free: 156 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Pulse_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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