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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001172/0.001172, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001393/0.001393, allocations: 195.6 kB / 16.14 MB, free: 6.645 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.438/1.438, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.807/2.807, allocations: 461.9 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 67.23 kB / 0.8984 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3521, allocations: 157.4 MB / 1.052 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin): time 0.001918/0.3541, allocations: 0.6664 MB / 1.053 GB, free: 8.207 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008494/0.3549, allocations: 0.804 MB / 1.054 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.662e-05/0.355, allocations: 0 / 1.054 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.379e-05/0.355, allocations: 3.938 kB / 1.054 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.742e-05/0.3551, allocations: 11.98 kB / 1.054 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001361/0.3552, allocations: 4 kB / 1.054 GB, free: 7.371 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.821e-05/0.3553, allocations: 15.94 kB / 1.054 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.248e-05/0.3554, allocations: 7.984 kB / 1.054 GB, free: 7.348 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.618e-05/0.3554, allocations: 11.94 kB / 1.054 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.14e-05/0.3555, allocations: 11.94 kB / 1.054 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.3555, allocations: 3.984 kB / 1.054 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.143e-05/0.3555, allocations: 4 kB / 1.054 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.495e-05/0.3556, allocations: 3.984 kB / 1.054 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.634e-05/0.3556, allocations: 7.938 kB / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.079e-05/0.3557, allocations: 15.92 kB / 1.054 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3557, allocations: 0 / 1.054 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.92e-07/0.3557, allocations: 0 / 1.054 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.3557, allocations: 0 / 1.054 GB, free: 7.289 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004143/0.3561, allocations: 331.7 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3562, allocations: 11.97 kB / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.3562, allocations: 4.844 kB / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.3563, allocations: 168.4 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.3563, allocations: 4.375 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.3563, allocations: 4.375 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.3565, allocations: 34.25 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.3565, allocations: 192 / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.3565, allocations: 3.938 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.3565, allocations: 0 / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.916e-05/0.3566, allocations: 15.92 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.3567, allocations: 153.7 kB / 1.054 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.735e-05/0.3568, allocations: 30.61 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.185e-05/0.3569, allocations: 12.91 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.3569, allocations: 0 / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.3569, allocations: 30.56 kB / 1.054 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3569, allocations: 0 / 1.054 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002118/0.3571, allocations: 65.64 kB / 1.054 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.3572, allocations: 51.41 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.529e-05/0.3573, allocations: 101.9 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.3573, allocations: 25.7 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.671e-05/0.3573, allocations: 88.12 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.3574, allocations: 3.906 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.3574, allocations: 13.72 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.891e-05/0.3575, allocations: 310.8 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.397e-05/0.3575, allocations: 16.02 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.933e-05/0.3576, allocations: 4 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.162e-05/0.3577, allocations: 16.84 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3577, allocations: 7.938 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000101/0.3578, allocations: 49.62 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.3578, allocations: 4 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.3578, allocations: 4.031 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.3578, allocations: 4 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.377e-05/0.3579, allocations: 7.984 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3579, allocations: 0 / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.091e-05/0.358, allocations: 3.984 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.358, allocations: 4 kB / 1.055 GB, free: 5.508 MB / 0.8106 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 6.751e-05/0.358, allocations: 111.4 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.635e-06/0.3581, allocations: 0 / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.828e-05/0.3581, allocations: 11.06 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3581, allocations: 7.984 kB / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3581, allocations: 0 / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3581, allocations: 0 / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.439e-05/0.3582, allocations: 157.6 kB / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3582, allocations: 0 / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.311e-05/0.3582, allocations: 0 / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.3582, allocations: 4 kB / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.3583, allocations: 4.188 kB / 1.055 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3583, allocations: 0 / 1.055 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3583, allocations: 4 kB / 1.055 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.3584, allocations: 77.05 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.171e-05/0.3584, allocations: 81.02 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.3584, allocations: 7.938 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.777e-05/0.3585, allocations: 0 / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.3585, allocations: 3.984 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.3585, allocations: 0 / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.455e-05/0.3586, allocations: 83.28 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3586, allocations: 8.031 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001704/0.3587, allocations: 0 / 1.056 GB, free: 4.867 MB / 0.8106 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.0001251/0.3589, allocations: 99.25 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001173/0.359, allocations: 15.92 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.359, allocations: 0 / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.21e-05/0.3591, allocations: 15.98 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001448/0.3592, allocations: 4.125 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002713/0.3595, allocations: 116.3 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.3598, allocations: 0.6692 MB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3e-05/0.3598, allocations: 4 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.3598, allocations: 11.42 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of SimCode: time 5.61e-07/0.3598, allocations: 0 / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of Templates: time 0.00249/0.3623, allocations: 254.3 kB / 1.057 GB, free: 3.625 MB / 0.8106 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=480 -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