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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pulse.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pulse.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 104 kB / 15.6 MB, free: 148 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.001563/0.001563, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.495/1.495, allocations: 222.9 MB / 240.2 MB, free: 4.215 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.537/2.537, allocations: 390.2 MB / 0.6647 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001429, allocations: 63.91 kB / 0.8125 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8615/0.8629, allocations: 140.4 MB / 0.9496 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse): time 0.002576/0.8656, allocations: 0.7109 MB / 0.9503 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.8673, allocations: 1.132 MB / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.8674, allocations: 0 / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.721e-05/0.8675, allocations: 7.938 kB / 0.9514 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.8676, allocations: 13.47 kB / 0.9514 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006555/0.8683, allocations: 132.3 kB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002702/0.8685, allocations: 133.8 kB / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.8687, allocations: 14.42 kB / 0.9517 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.8688, allocations: 49.78 kB / 0.9518 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.8689, allocations: 32.77 kB / 0.9518 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.865e-05/0.869, allocations: 12.97 kB / 0.9518 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.586e-05/0.8691, allocations: 26.05 kB / 0.9518 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.8691, allocations: 10.44 kB / 0.9518 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.453e-05/0.8692, allocations: 43.31 kB / 0.9519 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.8694, allocations: 134.8 kB / 0.952 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.8694, allocations: 0 / 0.952 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8694, allocations: 0 / 0.952 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.8694, allocations: 1.062 kB / 0.952 GB, free: 7.371 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.0005778/0.87, allocations: 399.3 kB / 0.9524 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.8701, allocations: 9.375 kB / 0.9524 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.231e-05/0.8702, allocations: 9.625 kB / 0.9524 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.8703, allocations: 172.4 kB / 0.9526 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.8703, allocations: 7.859 kB / 0.9526 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.8703, allocations: 5.312 kB / 0.9526 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.8705, allocations: 46.16 kB / 0.9526 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.8705, allocations: 192 / 0.9526 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.8705, allocations: 7.875 kB / 0.9526 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.8705, allocations: 5.625 kB / 0.9526 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.922e-05/0.8706, allocations: 14.03 kB / 0.9526 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004549/0.871, allocations: 322.5 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.938e-05/0.8711, allocations: 34.66 kB / 0.953 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.757e-05/0.8711, allocations: 13.2 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.8712, allocations: 0 / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.8714, allocations: 72.38 kB / 0.9531 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.8714, allocations: 0 / 0.9531 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002228/0.8716, allocations: 74.22 kB / 0.9531 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/0.8716, allocations: 52.34 kB / 0.9532 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.89e-05/0.8717, allocations: 131 kB / 0.9533 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.8718, allocations: 28.42 kB / 0.9533 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.614e-05/0.8718, allocations: 93.19 kB / 0.9534 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.8718, allocations: 17.86 kB / 0.9534 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.087e-05/0.8719, allocations: 29.17 kB / 0.9535 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.775e-05/0.872, allocations: 318 kB / 0.9538 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.283e-05/0.8721, allocations: 36.92 kB / 0.9538 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.604e-05/0.8721, allocations: 63.12 kB / 0.9539 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.8723, allocations: 99.55 kB / 0.954 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.8723, allocations: 0 / 0.954 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002595/0.8725, allocations: 161.5 kB / 0.9541 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.965e-05/0.8726, allocations: 37.08 kB / 0.9542 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.8726, allocations: 1.312 kB / 0.9542 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.8726, allocations: 5.5 kB / 0.9542 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.525e-05/0.8727, allocations: 6.891 kB / 0.9542 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.8727, allocations: 0 / 0.9542 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.8729, allocations: 31.97 kB / 0.9542 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.8729, allocations: 5.938 kB / 0.9542 GB, free: 5.176 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 7.441e-05/0.873, allocations: 122.6 kB / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/0.873, allocations: 7.562 kB / 0.9543 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.661e-05/0.873, allocations: 9.031 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.873, allocations: 1.219 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.8731, allocations: 0 / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.8731, allocations: 0 / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.279e-05/0.8732, allocations: 179.6 kB / 0.9545 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.8732, allocations: 3.938 kB / 0.9545 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.41e-05/0.8732, allocations: 2.656 kB / 0.9545 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.8732, allocations: 0 / 0.9545 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.8732, allocations: 1.25 kB / 0.9545 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.8732, allocations: 0 / 0.9545 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.8732, allocations: 1.469 kB / 0.9545 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/0.8733, allocations: 94.59 kB / 0.9546 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.652e-05/0.8734, allocations: 82.41 kB / 0.9547 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.8734, allocations: 9.312 kB / 0.9547 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.014e-05/0.8734, allocations: 4.844 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.03e-05/0.8734, allocations: 1.406 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.8735, allocations: 1.531 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.166e-05/0.8735, allocations: 95.27 kB / 0.9548 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8735, allocations: 0 / 0.9548 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000211/0.8737, allocations: 24.42 kB / 0.9548 GB, free: 4.527 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.000156/0.8739, allocations: 106.8 kB / 0.9549 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002202/0.8741, allocations: 137 kB / 0.9551 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.8741, allocations: 0 / 0.9551 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.502e-05/0.8742, allocations: 17.36 kB / 0.9551 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.8744, allocations: 24.91 kB / 0.9551 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002861/0.8747, allocations: 149.8 kB / 0.9552 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.8748, allocations: 0.6899 MB / 0.9559 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.346e-05/0.8749, allocations: 2.812 kB / 0.9559 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.779e-05/0.8749, allocations: 10.41 kB / 0.9559 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8749, allocations: 1.344 kB / 0.9559 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of Templates: time 0.004438/0.8793, allocations: 1.347 MB / 0.9572 GB, free: 2.773 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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