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.001348/0.001348, allocations: 108 kB / 15.61 MB, free: 152 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.001611/0.001611, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.197/2.197, allocations: 390.2 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 63.91 kB / 0.8127 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5345/0.5357, allocations: 140.4 MB / 0.9497 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse): time 0.001612/0.5373, allocations: 0.7202 MB / 0.9504 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.5384, allocations: 1.14 MB / 0.9516 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/0.5385, allocations: 0 / 0.9516 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.521e-05/0.5385, allocations: 4 kB / 0.9516 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.142e-05/0.5386, allocations: 9.5 kB / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003907/0.539, allocations: 132.2 kB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.5391, allocations: 129.6 kB / 0.9518 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.669e-05/0.5392, allocations: 13.83 kB / 0.9518 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.988e-05/0.5393, allocations: 50.22 kB / 0.9519 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.475e-05/0.5394, allocations: 33.22 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/0.5394, allocations: 12.06 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.309e-05/0.5395, allocations: 27.48 kB / 0.952 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.704e-05/0.5395, allocations: 14.23 kB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.073e-05/0.5395, allocations: 38.69 kB / 0.952 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.5397, allocations: 137.3 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.5397, allocations: 0 / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.192e-06/0.5397, allocations: 0 / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.5397, allocations: 1.312 kB / 0.9521 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.0003269/0.54, allocations: 392.1 kB / 0.9525 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.5401, allocations: 10.19 kB / 0.9525 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.221e-05/0.5401, allocations: 39.95 kB / 0.9526 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.684e-05/0.5401, allocations: 12.75 kB / 0.9526 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.166e-05/0.5402, allocations: 174.2 kB / 0.9527 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.5402, allocations: 2.188 kB / 0.9527 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.767e-05/0.5403, allocations: 9.438 kB / 0.9527 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.926e-05/0.5403, allocations: 41.75 kB / 0.9528 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.5403, allocations: 5.25 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.5404, allocations: 11.97 kB / 0.9528 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.5404, allocations: 1.344 kB / 0.9528 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.654e-05/0.5404, allocations: 10.72 kB / 0.9528 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002815/0.5407, allocations: 330.4 kB / 0.9531 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.404e-05/0.5407, allocations: 25.86 kB / 0.9532 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.965e-05/0.5408, allocations: 17.44 kB / 0.9532 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.716e-06/0.5408, allocations: 4 kB / 0.9532 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001023/0.5409, allocations: 68.69 kB / 0.9532 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.744e-06/0.5409, allocations: 0 / 0.9532 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001554/0.5411, allocations: 77.59 kB / 0.9533 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/0.5411, allocations: 57.31 kB / 0.9534 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.952e-05/0.5412, allocations: 122.8 kB / 0.9535 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.5412, allocations: 27.86 kB / 0.9535 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.257e-05/0.5412, allocations: 91.48 kB / 0.9536 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.138e-05/0.5412, allocations: 14.25 kB / 0.9536 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.541e-05/0.5413, allocations: 33.94 kB / 0.9536 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.266e-05/0.5413, allocations: 320.3 kB / 0.954 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.324e-05/0.5414, allocations: 33.67 kB / 0.954 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.213e-05/0.5415, allocations: 58.05 kB / 0.954 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.263e-05/0.5416, allocations: 92.34 kB / 0.9541 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.5416, allocations: 1.188 kB / 0.9541 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002223/0.5418, allocations: 169.2 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.5419, allocations: 36.8 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.5419, allocations: 1.5 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.5419, allocations: 1.344 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.053e-05/0.5419, allocations: 1.375 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.5419, allocations: 6.344 kB / 0.9543 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.5421, allocations: 35.3 kB / 0.9544 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.5421, allocations: 4.531 kB / 0.9544 GB, free: 5.012 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.568e-05/0.5422, allocations: 120.3 kB / 0.9545 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.179e-05/0.5422, allocations: 5.875 kB / 0.9545 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.929e-05/0.5422, allocations: 14.27 kB / 0.9545 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.5423, allocations: 0 / 0.9545 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.5423, allocations: 0.8438 kB / 0.9545 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.5423, allocations: 4 kB / 0.9545 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.102e-05/0.5423, allocations: 172 kB / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.5424, allocations: 0 / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.528e-05/0.5424, allocations: 6.172 kB / 0.9547 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.5424, allocations: 0 / 0.9547 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.5424, allocations: 1.125 kB / 0.9547 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5424, allocations: 4.875 kB / 0.9547 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.5424, allocations: 0 / 0.9547 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.898e-05/0.5425, allocations: 96.75 kB / 0.9548 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.684e-05/0.5425, allocations: 82.98 kB / 0.9549 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.5425, allocations: 9.484 kB / 0.9549 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.773e-05/0.5426, allocations: 0 / 0.9549 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.813e-05/0.5426, allocations: 2.5 kB / 0.9549 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.5426, allocations: 5.672 kB / 0.9549 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.635e-05/0.5426, allocations: 97.8 kB / 0.955 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5426, allocations: 1.312 kB / 0.955 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002058/0.5428, allocations: 23.72 kB / 0.955 GB, free: 4.359 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.0002389/0.5431, allocations: 0.6282 MB / 0.9556 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001777/0.5433, allocations: 141.1 kB / 0.9557 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5433, allocations: 0 / 0.9557 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.977e-05/0.5433, allocations: 17.62 kB / 0.9558 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.0002005/0.5435, allocations: 21.42 kB / 0.9558 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.5446, allocations: 1.488 MB / 0.9572 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.766e-05/0.5447, allocations: 0.6939 MB / 0.9579 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.235e-05/0.5447, allocations: 2.375 kB / 0.9579 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.5448, allocations: 18.98 kB / 0.9579 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.5448, allocations: 0 / 0.9579 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2636/0.8084, allocations: 2.337 MB / 0.9602 GB, free: 304 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.065/7.874, allocations: 12.59 kB / 0.9602 GB, free: 300 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