Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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: translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pulse.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pulse.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 92.23 kB / 16.02 MB, free: 80 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.001513/0.001513, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.422/1.422, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.757/2.757, allocations: 462.6 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005424/0.0005423, allocations: 9.781 kB / 0.9035 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3392, allocations: 159.6 MB / 1.059 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse): time 0.001029/0.3403, allocations: 450.9 kB / 1.06 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001654/0.3419, allocations: 1.143 MB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.435e-05/0.342, allocations: 7.938 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.992e-05/0.342, allocations: 0 / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.475e-05/0.3421, allocations: 7.922 kB / 1.061 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005029/0.3427, allocations: 126.6 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001422/0.3428, allocations: 99.83 kB / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.798e-05/0.3429, allocations: 8 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.082e-05/0.343, allocations: 43.83 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.675e-05/0.3431, allocations: 31.84 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.533e-05/0.3431, allocations: 12 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.3432, allocations: 11.98 kB / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.185e-05/0.3432, allocations: 8 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.003e-05/0.3433, allocations: 61.55 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.3435, allocations: 99.75 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3435, allocations: 0 / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3435, allocations: 3.938 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.3435, allocations: 0 / 1.061 GB, free: 2.836 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005543/0.3441, allocations: 385.3 kB / 1.062 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.3441, allocations: 11.97 kB / 1.062 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.162e-05/0.3442, allocations: 16.84 kB / 1.062 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.3445, allocations: 172.4 kB / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.156e-05/0.3445, allocations: 384 / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.3446, allocations: 8.375 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.3447, allocations: 46.25 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3447, allocations: 192 / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.3447, allocations: 7.922 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.3447, allocations: 0 / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.469e-05/0.3448, allocations: 12 kB / 1.062 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.3454, allocations: 344.6 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.134e-05/0.3455, allocations: 30.52 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.129e-05/0.3456, allocations: 16.91 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.3456, allocations: 3.938 kB / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.3458, allocations: 71.27 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 2.044e-06/0.3458, allocations: 0 / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0002889/0.3461, allocations: 73.59 kB / 1.063 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.3462, allocations: 55.41 kB / 1.063 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.3464, allocations: 125.8 kB / 1.063 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.3464, allocations: 29.7 kB / 1.063 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.3466, allocations: 88.14 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.3466, allocations: 3.906 kB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/0.3467, allocations: 21.7 kB / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002631/0.3469, allocations: 318.8 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.3471, allocations: 35.98 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.3473, allocations: 62.48 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.3475, allocations: 92.2 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3475, allocations: 0 / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004221/0.348, allocations: 167.2 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.96e-05/0.348, allocations: 33.7 kB / 1.064 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3481, allocations: 4 kB / 1.064 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.3481, allocations: 0 / 1.064 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.207e-05/0.3481, allocations: 11.92 kB / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3482, allocations: 0 / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.3484, allocations: 36.03 kB / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.3484, allocations: 8 kB / 1.064 GB, free: 328 kB / 0.8106 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 0.0001465/0.3486, allocations: 117.8 kB / 1.064 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.3486, allocations: 11.89 kB / 1.064 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.234e-05/0.3487, allocations: 7.906 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3487, allocations: 0 / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.3487, allocations: 0 / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3487, allocations: 0 / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002253/0.349, allocations: 181.6 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.349, allocations: 0 / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.972e-05/0.349, allocations: 4.062 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.349, allocations: 4 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.349, allocations: 3.938 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3491, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3491, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001908/0.3493, allocations: 96.91 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.908e-05/0.3494, allocations: 85.09 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.3494, allocations: 4 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.031e-05/0.3494, allocations: 3.938 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.3495, allocations: 4 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.3495, allocations: 0 / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.447e-05/0.3496, allocations: 99.27 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.21e-07/0.3496, allocations: 0 / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003199/0.3499, allocations: 19.98 kB / 1.064 GB, free: 15.59 MB / 0.8262 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.0002328/0.3502, allocations: 107.2 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003138/0.3505, allocations: 139.6 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3505, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.619e-05/0.3506, allocations: 19.97 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.3509, allocations: 16.12 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004934/0.3514, allocations: 192.4 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.3519, allocations: 0.6848 MB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.3519, allocations: 11.44 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of SimCode: time 2.705e-06/0.3519, allocations: 0 / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of Templates: time 0.004572/0.3565, allocations: 1.151 MB / 1.066 GB, free: 13.21 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches