Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine.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.Sine,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Sine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Sine",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.002007/0.002007, allocations: 108.6 kB / 15.73 MB, free: 72 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.00256/0.00256, allocations: 183.1 kB / 16.66 MB, free: 6.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.684/2.684, allocations: 222.9 MB / 240.4 MB, free: 4.309 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 3.985/3.985, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002745/0.002745, allocations: 71.42 kB / 0.9504 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4482/0.451, allocations: 140.4 MB / 1.088 GB, free: 2.07 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine): time 0.002936/0.454, allocations: 0.6182 MB / 1.088 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00165/0.4557, allocations: 0.8082 MB / 1.089 GB, free: 0.6367 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.063e-05/0.4557, allocations: 0 / 1.089 GB, free: 0.6367 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.76e-05/0.4558, allocations: 0 / 1.089 GB, free: 0.6367 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.744e-05/0.4559, allocations: 3.938 kB / 1.089 GB, free: 0.6328 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001865/0.4561, allocations: 4 kB / 1.089 GB, free: 0.6289 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.525e-05/0.4562, allocations: 23.91 kB / 1.089 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 6.403e-05/0.4563, allocations: 4 kB / 1.089 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.4564, allocations: 19.81 kB / 1.089 GB, free: 0.582 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.413e-05/0.4565, allocations: 7.984 kB / 1.089 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.4565, allocations: 0 / 1.089 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.497e-06/0.4566, allocations: 0 / 1.089 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.519e-05/0.4566, allocations: 4 kB / 1.089 GB, free: 0.5703 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.655e-05/0.4567, allocations: 7.938 kB / 1.089 GB, free: 0.5625 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.4568, allocations: 27.89 kB / 1.089 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.4568, allocations: 0 / 1.089 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.994e-06/0.4568, allocations: 0 / 1.089 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.4568, allocations: 0 / 1.089 GB, free: 0.5352 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.0005659/0.4574, allocations: 323.8 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.4575, allocations: 12.03 kB / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.691e-05/0.4575, allocations: 34.75 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.4576, allocations: 0.9375 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.4578, allocations: 172.3 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.4578, allocations: 4.375 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.4579, allocations: 384 / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.4581, allocations: 38.19 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.4581, allocations: 3.938 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.4581, allocations: 0 / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.4581, allocations: 0 / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.4583, allocations: 12 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002513/0.4585, allocations: 153.7 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.4587, allocations: 30.66 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.332e-05/0.4588, allocations: 8.859 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.4588, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.4589, allocations: 42.48 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/0.4589, allocations: 0 / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0003483/0.4593, allocations: 53.67 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.4593, allocations: 59.44 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.4595, allocations: 101.8 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.4595, allocations: 25.7 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.487e-05/0.4596, allocations: 84.14 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.4596, allocations: 0 / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.4597, allocations: 13.72 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.4599, allocations: 318.8 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.689e-05/0.46, allocations: 8.25 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.601e-05/0.4601, allocations: 11.92 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.4602, allocations: 24.8 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.4602, allocations: 4 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0002152/0.4605, allocations: 45.67 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.4605, allocations: 9.656 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4605, allocations: 3.938 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.4606, allocations: 4.094 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.4607, allocations: 4 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.4607, allocations: 0 / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.216e-05/0.4608, allocations: 0 / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.4608, allocations: 7.984 kB / 1.091 GB, free: 14.72 MB / 0.8575 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 0.0001082/0.4609, allocations: 109.8 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.461, allocations: 11.88 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.754e-05/0.461, allocations: 7.125 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.461, allocations: 0 / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.461, allocations: 7.938 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.461, allocations: 0 / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.4612, allocations: 153.7 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.4612, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.924e-05/0.4613, allocations: 3.984 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.4614, allocations: 7.938 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.4614, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.4614, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4614, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.4616, allocations: 69.12 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.752e-05/0.4617, allocations: 77.11 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.4618, allocations: 11.92 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.243e-05/0.4618, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.921e-05/0.4619, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.4619, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.181e-05/0.462, allocations: 83.28 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/0.462, allocations: 8.031 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003818/0.4624, allocations: 0 / 1.091 GB, free: 14.08 MB / 0.8575 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.0006998/0.4631, allocations: 0.6123 MB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002161/0.4633, allocations: 24.02 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/0.4634, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.785e-05/0.4635, allocations: 15.86 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.4637, allocations: 4 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006262/0.4644, allocations: 132.4 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000389/0.4648, allocations: 0.6729 MB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.269e-05/0.4649, allocations: 4.125 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.722e-05/0.4649, allocations: 15.44 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of SimCode: time 4.61e-07/0.465, allocations: 0 / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0499/0.5149, allocations: 1.122 MB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.09, allocations: 5.438 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine_res.csv --start-time 0 --stop-time 130 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.052 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Sine.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Sine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Sine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches