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.00111/0.00111, allocations: 112 kB / 16.41 MB, free: 6.484 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.001286/0.001286, allocations: 183 kB / 17.34 MB, free: 5.762 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.476/2.476, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 71.91 kB / 1.055 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7196/0.7217, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin): time 0.001731/0.7235, allocations: 0.612 MB / 1.209 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008902/0.7244, allocations: 0.8079 MB / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.637e-05/0.7244, allocations: 0 / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.399e-05/0.7245, allocations: 0 / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.014e-05/0.7245, allocations: 7.938 kB / 1.21 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001421/0.7247, allocations: 7.922 kB / 1.21 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.591e-05/0.7248, allocations: 19.98 kB / 1.21 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.643e-05/0.7248, allocations: 0 / 1.21 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.908e-05/0.7249, allocations: 19.86 kB / 1.21 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.305e-05/0.725, allocations: 8 kB / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.725, allocations: 0 / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.786e-06/0.725, allocations: 4 kB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.35e-05/0.725, allocations: 0 / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.688e-05/0.7251, allocations: 11.91 kB / 1.21 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 7.347e-05/0.7252, allocations: 15.92 kB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.7252, allocations: 4 kB / 1.21 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.664e-06/0.7252, allocations: 0 / 1.21 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.7252, allocations: 0 / 1.21 GB, free: 12.13 MB / 0.9356 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.0004085/0.7256, allocations: 335.3 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.7256, allocations: 11.97 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.7257, allocations: 4.938 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.7258, allocations: 164.4 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.7258, allocations: 384 / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.7258, allocations: 384 / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.7259, allocations: 42.19 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.726, allocations: 192 / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.726, allocations: 3.938 kB / 1.21 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.726, allocations: 4 kB / 1.21 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.247e-05/0.7261, allocations: 19.97 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.7262, allocations: 153.7 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.912e-05/0.7263, allocations: 18.58 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.593e-05/0.7264, allocations: 20.91 kB / 1.211 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.7264, allocations: 0 / 1.211 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.7264, allocations: 38.5 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.7264, allocations: 4 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0002106/0.7267, allocations: 53.53 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.7267, allocations: 55.41 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.01e-05/0.7268, allocations: 101.8 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.7268, allocations: 25.7 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/0.7268, allocations: 80.27 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.7269, allocations: 8 kB / 1.211 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.157e-05/0.7269, allocations: 9.719 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.727, allocations: 322.8 kB / 1.211 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.493e-05/0.7271, allocations: 4 kB / 1.211 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.671e-05/0.7271, allocations: 15.92 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.2e-05/0.7272, allocations: 20.84 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.7272, allocations: 4.062 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001078/0.7273, allocations: 45.69 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.7273, allocations: 4 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.7273, allocations: 3.938 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.7274, allocations: 4 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.113e-05/0.7274, allocations: 0 / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.7275, allocations: 0 / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.311e-05/0.7275, allocations: 7.984 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.7275, allocations: 256 / 1.211 GB, free: 10.36 MB / 0.9356 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.886e-05/0.7276, allocations: 109.9 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.7276, allocations: 7.906 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.311e-05/0.7276, allocations: 11 kB / 1.212 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.7276, allocations: 4 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.7276, allocations: 0 / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.7277, allocations: 0 / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.681e-05/0.7278, allocations: 157.6 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.7278, allocations: 0 / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.89e-05/0.7278, allocations: 7.984 kB / 1.212 GB, free: 10 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.7278, allocations: 4 kB / 1.212 GB, free: 10 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.7278, allocations: 3.938 kB / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.7278, allocations: 0 / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.7278, allocations: 0 / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001293/0.728, allocations: 69.12 kB / 1.212 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.541e-05/0.728, allocations: 81.09 kB / 1.212 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.728, allocations: 3.938 kB / 1.212 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.857e-05/0.7281, allocations: 8.031 kB / 1.212 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.847e-05/0.7281, allocations: 0 / 1.212 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.7281, allocations: 0 / 1.212 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.519e-05/0.7282, allocations: 87.27 kB / 1.212 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7282, allocations: 3.938 kB / 1.212 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001771/0.7283, allocations: 4 kB / 1.212 GB, free: 9.707 MB / 0.9356 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.0001282/0.7285, allocations: 95.25 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001297/0.7286, allocations: 27.92 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.7286, allocations: 0 / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.396e-05/0.7287, allocations: 4 kB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.7288, allocations: 3.984 kB / 1.212 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002902/0.7291, allocations: 130.1 kB / 1.212 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.7294, allocations: 0.6806 MB / 1.213 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.472e-05/0.7294, allocations: 7.562 kB / 1.213 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.7294, allocations: 4 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of Templates: time 0.00159/0.731, allocations: 470.4 kB / 1.213 GB, free: 8.23 MB / 0.9356 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/jenkins1/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