Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.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.Logical.Sources.Validation.Pulse,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_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.006906/0.006907, allocations: 100.5 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.00191/0.00191, allocations: 191.9 kB / 16.67 MB, free: 5.934 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.286/1.286, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.29/2.29, allocations: 437.1 MB / 0.7106 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 72.11 kB / 1.018 GB, free: 9.793 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6476/0.6494, allocations: 151.6 MB / 1.166 GB, free: 3.711 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse): time 0.001918/0.6514, allocations: 1.175 MB / 1.167 GB, free: 2.539 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002335/0.6537, allocations: 2.175 MB / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.192e-05/0.6538, allocations: 4 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.022e-05/0.6539, allocations: 19.69 kB / 1.17 GB, free: 332 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.654, allocations: 83.27 kB / 1.17 GB, free: 248 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.6565, allocations: 1.4 MB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001136/0.6576, allocations: 1.291 MB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.833e-05/0.6577, allocations: 20.75 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004131/0.6581, allocations: 479.2 kB / 1.173 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005364/0.6587, allocations: 442.8 kB / 1.173 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001754/0.6588, allocations: 104 kB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.659, allocations: 124 kB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 5.758e-05/0.6591, allocations: 55.77 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0004005/0.6595, allocations: 395 kB / 1.174 GB, free: 12 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008518/0.6604, allocations: 0.9657 MB / 1.175 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.6604, allocations: 0 / 1.175 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6604, allocations: 0 / 1.175 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.319e-06/0.6604, allocations: 0 / 1.175 GB, free: 11.04 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001281/0.6617, allocations: 1.176 MB / 1.176 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.6617, allocations: 8.922 kB / 1.176 GB, free: 9.711 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.129e-05/0.6618, allocations: 50.72 kB / 1.176 GB, free: 9.652 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001591/0.6619, allocations: 68.75 kB / 1.176 GB, free: 9.586 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.6622, allocations: 224.6 kB / 1.176 GB, free: 9.332 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.6622, allocations: 40.3 kB / 1.176 GB, free: 9.293 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.6624, allocations: 64.36 kB / 1.176 GB, free: 9.23 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.6626, allocations: 211 kB / 1.176 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.6626, allocations: 7.875 kB / 1.176 GB, free: 8.965 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.6627, allocations: 7.984 kB / 1.177 GB, free: 8.957 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.6627, allocations: 0 / 1.177 GB, free: 8.957 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.6628, allocations: 71.78 kB / 1.177 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008682/0.6637, allocations: 0.8484 MB / 1.177 GB, free: 7.945 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.664, allocations: 327.3 kB / 1.178 GB, free: 7.488 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.6641, allocations: 140.8 kB / 1.178 GB, free: 7.305 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.6642, allocations: 12 kB / 1.178 GB, free: 7.293 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005728/0.6647, allocations: 462.7 kB / 1.178 GB, free: 6.777 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.6647, allocations: 3.938 kB / 1.178 GB, free: 6.773 MB / 0.9044 GB Notification: Performance of matching and sorting (n=45): time 0.0009427/0.6657, allocations: 0.5619 MB / 1.179 GB, free: 6.207 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002315/0.6659, allocations: 443.2 kB / 1.179 GB, free: 5.676 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.6662, allocations: 292.4 kB / 1.18 GB, free: 5.379 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.6663, allocations: 69.69 kB / 1.18 GB, free: 5.305 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.6665, allocations: 161.4 kB / 1.18 GB, free: 5.141 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.554e-05/0.6666, allocations: 95.33 kB / 1.18 GB, free: 5.047 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004472/0.667, allocations: 282 kB / 1.18 GB, free: 4.762 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.6672, allocations: 346.8 kB / 1.18 GB, free: 4.414 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007874/0.668, allocations: 421.3 kB / 1.181 GB, free: 4.004 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.669, allocations: 0.7106 MB / 1.182 GB, free: 3.156 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.6703, allocations: 1.191 MB / 1.183 GB, free: 1.734 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.6703, allocations: 4 kB / 1.183 GB, free: 1.73 MB / 0.9044 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002595/0.6729, allocations: 1.724 MB / 1.184 GB, free: 15.9 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003147/0.6732, allocations: 481.4 kB / 1.185 GB, free: 15.34 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.6733, allocations: 8 kB / 1.185 GB, free: 15.33 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/0.6733, allocations: 20 kB / 1.185 GB, free: 15.31 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.421e-05/0.6734, allocations: 32.67 kB / 1.185 GB, free: 15.28 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.41e-05/0.6734, allocations: 19.92 kB / 1.185 GB, free: 15.26 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/0.6754, allocations: 407.1 kB / 1.185 GB, free: 14.86 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/0.6756, allocations: 99.92 kB / 1.185 GB, free: 14.77 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 60 (booPul_c5.y,$PRE.booPul_c5.y,$whenCondition29,$whenCondition30,booPul_b5.y,$PRE.booPul_b5.y,$whenCondition27,$whenCondition28,booPul_a5.y,$PRE.booPul_a5.y,$whenCondition25,$whenCondition26,booPul_c4.y,$PRE.booPul_c4.y,$whenCondition23,$whenCondition24,booPul_b4.y,$PRE.booPul_b4.y,$whenCondition21,$whenCondition22,booPul_a4.y,$PRE.booPul_a4.y,$whenCondition19,$whenCondition20,booPul_c3.y,$PRE.booPul_c3.y,$whenCondition17,$whenCondition18,booPul_b3.y,$PRE.booPul_b3.y,$whenCondition15,$whenCondition16,booPul_a3.y,$PRE.booPul_a3.y,$whenCondition13,$whenCondition14,booPul_c2.y,$PRE.booPul_c2.y,$whenCondition11,$whenCondition12,booPul_b2.y,$PRE.booPul_b2.y,$whenCondition9,$whenCondition10,booPul_a2.y,$PRE.booPul_a2.y,$whenCondition7,$whenCondition8,booPul_c1.y,$PRE.booPul_c1.y,$whenCondition5,$whenCondition6,booPul_b1.y,$PRE.booPul_b1.y,$whenCondition3,$whenCondition4,booPul_a1.y,$PRE.booPul_a1.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 15 * 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.000314/0.6759, allocations: 221.5 kB / 1.186 GB, free: 14.54 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.072e-05/0.676, allocations: 51.7 kB / 1.186 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.836e-05/0.6761, allocations: 34.14 kB / 1.186 GB, free: 14.45 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.6761, allocations: 8 kB / 1.186 GB, free: 14.45 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.6761, allocations: 4 kB / 1.186 GB, free: 14.44 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.6761, allocations: 7.984 kB / 1.186 GB, free: 14.43 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003631/0.6765, allocations: 333.4 kB / 1.186 GB, free: 14.06 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.6765, allocations: 4 kB / 1.186 GB, free: 14.05 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.781e-05/0.6765, allocations: 19.86 kB / 1.186 GB, free: 14.04 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.6765, allocations: 8 kB / 1.186 GB, free: 14.03 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/0.6766, allocations: 19.98 kB / 1.186 GB, free: 14.01 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.757e-06/0.6766, allocations: 11.94 kB / 1.186 GB, free: 14 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/0.6766, allocations: 4 kB / 1.186 GB, free: 13.99 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006578/0.6773, allocations: 0.5234 MB / 1.187 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.547e-05/0.6773, allocations: 120.8 kB / 1.187 GB, free: 13.27 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.6774, allocations: 19.98 kB / 1.187 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.6775, allocations: 15.98 kB / 1.187 GB, free: 13.24 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.125e-05/0.6776, allocations: 55.83 kB / 1.187 GB, free: 13.18 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.6776, allocations: 35.97 kB / 1.187 GB, free: 13.15 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001557/0.6778, allocations: 187.1 kB / 1.187 GB, free: 12.97 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6778, allocations: 0 / 1.187 GB, free: 12.97 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005632/0.6784, allocations: 200 kB / 1.187 GB, free: 12.77 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition29,$whenCondition30,booPul_c5.y,$whenCondition27,$whenCondition28,booPul_b5.y,$whenCondition25,$whenCondition26,booPul_a5.y,$whenCondition23,$whenCondition24,booPul_c4.y,$whenCondition21,$whenCondition22,booPul_b4.y,$whenCondition19,$whenCondition20,booPul_a4.y,$whenCondition17,$whenCondition18,booPul_c3.y,$whenCondition15,$whenCondition16,booPul_b3.y,$whenCondition13,$whenCondition14,booPul_a3.y,$whenCondition11,$whenCondition12,booPul_c2.y,$whenCondition9,$whenCondition10,booPul_b2.y,$whenCondition7,$whenCondition8,booPul_a2.y,$whenCondition5,$whenCondition6,booPul_c1.y,$whenCondition3,$whenCondition4,booPul_b1.y,$whenCondition1,$whenCondition2,booPul_a1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 15 * 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.00105/0.6794, allocations: 1.089 MB / 1.188 GB, free: 11.61 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00197/0.6814, allocations: 1.747 MB / 1.19 GB, free: 9.684 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.6814, allocations: 8.188 kB / 1.19 GB, free: 9.676 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.6817, allocations: 183.7 kB / 1.19 GB, free: 9.496 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006374/0.6823, allocations: 124.8 kB / 1.19 GB, free: 9.375 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008242/0.6906, allocations: 6.473 MB / 1.197 GB, free: 2.371 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.6909, allocations: 0.7799 MB / 1.197 GB, free: 1.562 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001107/0.691, allocations: 42.97 kB / 1.197 GB, free: 1.52 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.6912, allocations: 103.4 kB / 1.198 GB, free: 1.418 MB / 0.92 GB Notification: Performance of SimCode: time 3.01e-07/0.6912, allocations: 0 / 1.198 GB, free: 1.418 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.103/1.794, allocations: 14.87 MB / 1.212 GB, free: 2.781 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/13.01, allocations: 6.578 kB / 1.212 GB, free: 2.777 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches