Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.Validation.Sin,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sin,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sin",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.01091/0.01091, allocations: 100.3 kB / 15.73 MB, free: 5.602 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.001877/0.001877, allocations: 190.4 kB / 16.68 MB, free: 5.523 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.46/2.46, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 75.88 kB / 1.018 GB, free: 9.852 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.936/0.9375, allocations: 151.6 MB / 1.166 GB, free: 3.793 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sin): time 0.002554/0.9401, allocations: 0.6731 MB / 1.167 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001231/0.9414, allocations: 0.804 MB / 1.168 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.197e-05/0.9414, allocations: 0 / 1.168 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.33e-05/0.9415, allocations: 3.938 kB / 1.168 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.36e-05/0.9416, allocations: 0 / 1.168 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.9418, allocations: 23.91 kB / 1.168 GB, free: 2.281 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.816e-05/0.9418, allocations: 23.98 kB / 1.168 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.942, allocations: 8 kB / 1.168 GB, free: 2.25 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.376e-05/0.942, allocations: 11.88 kB / 1.168 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.89e-05/0.9421, allocations: 7.984 kB / 1.168 GB, free: 2.23 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.9421, allocations: 4 kB / 1.168 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.323e-06/0.9421, allocations: 0 / 1.168 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.972e-05/0.9422, allocations: 7.938 kB / 1.168 GB, free: 2.219 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.052e-05/0.9422, allocations: 7.984 kB / 1.168 GB, free: 2.211 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.9423, allocations: 27.89 kB / 1.168 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.9423, allocations: 0 / 1.168 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.003e-06/0.9423, allocations: 0 / 1.168 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.9423, allocations: 0 / 1.168 GB, free: 2.184 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000519/0.9429, allocations: 339.2 kB / 1.168 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.9429, allocations: 8.625 kB / 1.168 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.34e-05/0.943, allocations: 34.75 kB / 1.168 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.168e-05/0.943, allocations: 4.938 kB / 1.168 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.9432, allocations: 168.3 kB / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.9432, allocations: 4.375 kB / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.9432, allocations: 384 / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.9434, allocations: 54.17 kB / 1.168 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.9434, allocations: 7.875 kB / 1.168 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.9435, allocations: 3.938 kB / 1.168 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.9435, allocations: 4 kB / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.9437, allocations: 31.95 kB / 1.168 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004847/0.9442, allocations: 248.9 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.9443, allocations: 48.91 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.631e-05/0.9444, allocations: 24.91 kB / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.9445, allocations: 0 / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.9445, allocations: 34.56 kB / 1.169 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.9445, allocations: 0 / 1.169 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0004041/0.9449, allocations: 77.64 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.945, allocations: 51.41 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.9451, allocations: 101.8 kB / 1.169 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.9451, allocations: 29.7 kB / 1.169 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 6.569e-05/0.9452, allocations: 84.27 kB / 1.169 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.782e-05/0.9452, allocations: 7.953 kB / 1.169 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.294e-05/0.9453, allocations: 17.66 kB / 1.169 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.9454, allocations: 314.8 kB / 1.169 GB, free: 304 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.723e-05/0.9455, allocations: 15.97 kB / 1.169 GB, free: 288 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.359e-05/0.9456, allocations: 15.98 kB / 1.169 GB, free: 272 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.9458, allocations: 40.89 kB / 1.169 GB, free: 228 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.9458, allocations: 3.938 kB / 1.169 GB, free: 224 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002121/0.946, allocations: 69.61 kB / 1.17 GB, free: 148 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.946, allocations: 4 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.946, allocations: 0 / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.9461, allocations: 4.188 kB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.926e-05/0.9462, allocations: 7.984 kB / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.9462, allocations: 7.969 kB / 1.17 GB, free: 124 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.991e-05/0.9462, allocations: 7.984 kB / 1.17 GB, free: 116 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.9463, allocations: 0 / 1.17 GB, free: 116 kB / 0.8887 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 (2): * Single equations (assignments): 2 * 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.0001125/0.9464, allocations: 113.8 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.9464, allocations: 3.984 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002402/0.9467, allocations: 68.73 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.9467, allocations: 8.031 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.9467, allocations: 0 / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.9467, allocations: 0 / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.9469, allocations: 161.6 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.9469, allocations: 3.938 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.702e-05/0.9469, allocations: 4 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.947, allocations: 4 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.947, allocations: 4 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.947, allocations: 3.984 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.947, allocations: 7.875 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.9472, allocations: 163.5 kB / 1.17 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.697e-05/0.9473, allocations: 85.05 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.159e-05/0.9473, allocations: 0 / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.44e-05/0.9474, allocations: 4 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.9474, allocations: 3.984 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.9475, allocations: 8.031 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.19e-05/0.9475, allocations: 83.28 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9475, allocations: 0 / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002132/0.9477, allocations: 0 / 1.17 GB, free: 15.29 MB / 0.9044 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 (2): * Single equations (assignments): 2 * 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.000599/0.9483, allocations: 0.7007 MB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002125/0.9486, allocations: 35.95 kB / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.9486, allocations: 4 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.085e-05/0.9487, allocations: 15.98 kB / 1.171 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.949, allocations: 4 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004846/0.9495, allocations: 143.7 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.9498, allocations: 0.6729 MB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.293e-05/0.9498, allocations: 0 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.034e-05/0.9499, allocations: 19.42 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.9499, allocations: 0 / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.9707, allocations: 1.267 MB / 1.173 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/8.766, allocations: 4.875 kB / 1.173 GB, free: 12.42 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sin_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sin.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sin_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches