Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Integers.Sources.Validation.Pulse,fileNamePrefix="Buildings_latest_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_latest_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.001545/0.001545, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00191/0.00191, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.211/1.211, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.396/2.396, allocations: 461.9 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 68.88 kB / 0.8985 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.236, allocations: 157.4 MB / 1.052 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.002328/0.2383, allocations: 1.031 MB / 1.053 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.24, allocations: 1.498 MB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.627e-05/0.2401, allocations: 0 / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.134e-05/0.2402, allocations: 11.88 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.2404, allocations: 43.69 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009412/0.2413, allocations: 413.7 kB / 1.055 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.2417, allocations: 423.1 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.2418, allocations: 45.66 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.2421, allocations: 143.6 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.2423, allocations: 135.4 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.093e-05/0.2423, allocations: 20 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.2425, allocations: 35.98 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.039e-05/0.2425, allocations: 27.91 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.2427, allocations: 143.3 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003937/0.2431, allocations: 471 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2431, allocations: 0 / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.72e-07/0.2431, allocations: 0 / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.2431, allocations: 0 / 1.057 GB, free: 3.832 MB / 0.8106 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.0007546/0.2439, allocations: 0.634 MB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.2439, allocations: 11.97 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.588e-05/0.2439, allocations: 38.75 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.158e-05/0.244, allocations: 36.66 kB / 1.057 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.2442, allocations: 222.9 kB / 1.057 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.2442, allocations: 12.38 kB / 1.057 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.268e-05/0.2443, allocations: 24.38 kB / 1.057 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.2445, allocations: 117.6 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2445, allocations: 7.875 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.2445, allocations: 7.922 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.2445, allocations: 11.94 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001036/0.2446, allocations: 51.98 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008123/0.2454, allocations: 0.8717 MB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.2456, allocations: 122.4 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.44e-05/0.2457, allocations: 55.48 kB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.2457, allocations: 0 / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.2459, allocations: 176.8 kB / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.2459, allocations: 0 / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0004103/0.2464, allocations: 230 kB / 1.059 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.2464, allocations: 136.5 kB / 1.059 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.2466, allocations: 244.8 kB / 1.059 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/0.2467, allocations: 37.7 kB / 1.059 GB, free: 500 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.461e-05/0.2468, allocations: 128.5 kB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.2468, allocations: 31.61 kB / 1.06 GB, free: 336 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.247, allocations: 97.64 kB / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.817e-05/0.2471, allocations: 326.8 kB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.2474, allocations: 148.2 kB / 1.06 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.2477, allocations: 229.1 kB / 1.06 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.2481, allocations: 364.9 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2481, allocations: 4 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008222/0.2489, allocations: 0.5545 MB / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.538e-05/0.249, allocations: 135 kB / 1.061 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.249, allocations: 11.94 kB / 1.061 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.249, allocations: 4 kB / 1.061 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.73e-05/0.2491, allocations: 11.94 kB / 1.061 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.2491, allocations: 4 kB / 1.061 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006344/0.2498, allocations: 123.6 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.395e-05/0.2498, allocations: 27.98 kB / 1.062 GB, free: 14.15 MB / 0.8262 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.0001329/0.25, allocations: 145.8 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.027e-05/0.25, allocations: 19.81 kB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.804e-05/0.25, allocations: 21.23 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2501, allocations: 4 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2501, allocations: 3.938 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.2501, allocations: 7.938 kB / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000195/0.2503, allocations: 261.4 kB / 1.062 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2503, allocations: 0 / 1.062 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.568e-05/0.2503, allocations: 15.92 kB / 1.062 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2503, allocations: 4 kB / 1.062 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.2504, allocations: 8 kB / 1.062 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2504, allocations: 0 / 1.062 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2504, allocations: 0 / 1.062 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002545/0.2506, allocations: 227.3 kB / 1.062 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.2507, allocations: 92.83 kB / 1.062 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.2507, allocations: 11.98 kB / 1.062 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.677e-05/0.2508, allocations: 0 / 1.062 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.436e-05/0.2508, allocations: 19.92 kB / 1.062 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.2508, allocations: 11.98 kB / 1.062 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001269/0.251, allocations: 168.5 kB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.251, allocations: 0 / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003041/0.2513, allocations: 67.98 kB / 1.063 GB, free: 12.97 MB / 0.8262 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.0004926/0.2518, allocations: 0.7671 MB / 1.063 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000588/0.2524, allocations: 0.524 MB / 1.064 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2524, allocations: 3.938 kB / 1.064 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.226e-05/0.2525, allocations: 68.56 kB / 1.064 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003863/0.2529, allocations: 61.11 kB / 1.064 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.2562, allocations: 3.034 MB / 1.067 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.2565, allocations: 0.7284 MB / 1.068 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.377e-05/0.2565, allocations: 21.48 kB / 1.068 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.426e-05/0.2566, allocations: 63.41 kB / 1.068 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.2566, allocations: 0 / 1.068 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4486/0.7052, allocations: 6.033 MB / 1.074 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002166/0.7054, allocations: 221.9 kB / 1.074 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.374, allocations: 1.5 kB / 1.074 GB, free: 1.293 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches