Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Sin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001875/0.001876, allocations: 192.5 kB / 16.25 MB, free: 6.637 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.473/1.473, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.016/3.016, allocations: 482.3 MB / 0.7543 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 69.08 kB / 0.9233 GB, free: 29.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4303/0.4322, allocations: 162.2 MB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin): time 0.002089/0.4344, allocations: 0.6811 MB / 1.082 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.4354, allocations: 0.8001 MB / 1.083 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.639e-05/0.4354, allocations: 0 / 1.083 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.038e-05/0.4355, allocations: 0 / 1.083 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.652e-05/0.4355, allocations: 7.922 kB / 1.083 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001285/0.4357, allocations: 7.984 kB / 1.083 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.174e-05/0.4358, allocations: 15.94 kB / 1.083 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.887e-05/0.4358, allocations: 7.984 kB / 1.083 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.686e-05/0.4359, allocations: 19.94 kB / 1.083 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.875e-05/0.436, allocations: 7.938 kB / 1.083 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.27e-05/0.436, allocations: 0 / 1.083 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.104e-05/0.436, allocations: 4 kB / 1.083 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.208e-05/0.436, allocations: 11.97 kB / 1.083 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.089e-05/0.4361, allocations: 3.938 kB / 1.083 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 6.806e-05/0.4361, allocations: 15.92 kB / 1.083 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4361, allocations: 0 / 1.083 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4361, allocations: 0 / 1.083 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.4362, allocations: 0 / 1.083 GB, free: 12.01 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004503/0.4366, allocations: 339.7 kB / 1.084 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.4367, allocations: 8.031 kB / 1.084 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.007e-05/0.4367, allocations: 0.9375 kB / 1.084 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.4368, allocations: 164.4 kB / 1.084 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.4369, allocations: 384 / 1.084 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-06/0.4369, allocations: 4.312 kB / 1.084 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.437, allocations: 38.23 kB / 1.084 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.437, allocations: 192 / 1.084 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.437, allocations: 3.938 kB / 1.084 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.437, allocations: 8 kB / 1.084 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.864e-05/0.4371, allocations: 15.98 kB / 1.084 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001887/0.4373, allocations: 149.7 kB / 1.084 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 6.812e-05/0.4374, allocations: 22.61 kB / 1.084 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.429e-05/0.4374, allocations: 16.84 kB / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.4375, allocations: 0 / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.4375, allocations: 38.56 kB / 1.084 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.4375, allocations: 0 / 1.084 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0002252/0.4377, allocations: 57.52 kB / 1.084 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.4378, allocations: 55.41 kB / 1.084 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.068e-05/0.4379, allocations: 97.86 kB / 1.084 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.4379, allocations: 25.7 kB / 1.084 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.27e-05/0.438, allocations: 92.25 kB / 1.084 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.438, allocations: 0 / 1.084 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.438, allocations: 13.72 kB / 1.084 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.4382, allocations: 318.8 kB / 1.085 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.845e-05/0.4382, allocations: 11.92 kB / 1.085 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.026e-05/0.4383, allocations: 4 kB / 1.085 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.4384, allocations: 24.84 kB / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4384, allocations: 4.062 kB / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000102/0.4385, allocations: 41.69 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.4386, allocations: 4 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.4386, allocations: 4.188 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.4386, allocations: 0 / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.403e-05/0.4387, allocations: 15.92 kB / 1.085 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.79e-06/0.4387, allocations: 0 / 1.085 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.548e-05/0.4387, allocations: 4 kB / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.4387, allocations: 3.938 kB / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 9.424e-05/0.4388, allocations: 113.9 kB / 1.085 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.4388, allocations: 3.906 kB / 1.085 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.061e-05/0.4389, allocations: 11.06 kB / 1.085 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4389, allocations: 3.984 kB / 1.085 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4389, allocations: 0 / 1.085 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.4389, allocations: 0 / 1.085 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.439, allocations: 153.7 kB / 1.085 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.439, allocations: 0 / 1.085 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.745e-05/0.4391, allocations: 4 kB / 1.085 GB, free: 9.891 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.4391, allocations: 4 kB / 1.085 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.4391, allocations: 3.938 kB / 1.085 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4391, allocations: 0 / 1.085 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.4391, allocations: 0 / 1.085 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.4392, allocations: 69.11 kB / 1.085 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.699e-05/0.4393, allocations: 81.11 kB / 1.085 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.4393, allocations: 3.938 kB / 1.085 GB, free: 9.695 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.655e-05/0.4394, allocations: 4.031 kB / 1.085 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.244e-05/0.4394, allocations: 3.938 kB / 1.085 GB, free: 9.688 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.4394, allocations: 7.984 kB / 1.085 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001196/0.4395, allocations: 83.28 kB / 1.085 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4395, allocations: 0 / 1.085 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001765/0.4397, allocations: 0 / 1.085 GB, free: 9.598 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001402/0.4399, allocations: 99.25 kB / 1.085 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001296/0.44, allocations: 23.92 kB / 1.085 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.44, allocations: 0 / 1.085 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 4.042e-05/0.4401, allocations: 11.98 kB / 1.085 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.4402, allocations: 0 / 1.085 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003076/0.4405, allocations: 114.6 kB / 1.086 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.4409, allocations: 0.673 MB / 1.086 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 2.36e-05/0.4409, allocations: 4 kB / 1.086 GB, free: 8.609 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.655e-05/0.4409, allocations: 11.42 kB / 1.086 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.4409, allocations: 0 / 1.086 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of Templates: time 0.002573/0.4435, allocations: 266.2 kB / 1.087 GB, free: 8.34 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Sin.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches