Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.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.Validation.Sort,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort",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.01475/0.01475, allocations: 98.27 kB / 15.73 MB, free: 5.98 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.00246/0.00246, allocations: 194.4 kB / 16.67 MB, free: 5.91 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.678/2.678, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 4.212/4.212, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.003088/0.003088, allocations: 63.91 kB / 0.9505 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.876/1.879, allocations: 140.4 MB / 1.088 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.003169/1.883, allocations: 0.832 MB / 1.088 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002259/1.885, allocations: 1.009 MB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.746e-05/1.885, allocations: 0.9375 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001814/1.885, allocations: 18.77 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.391e-05/1.885, allocations: 16.7 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007192/1.886, allocations: 93.41 kB / 1.089 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002411/1.886, allocations: 121 kB / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/1.887, allocations: 45.19 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/1.887, allocations: 51.14 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/1.887, allocations: 58.44 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.129e-05/1.887, allocations: 10.28 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002494/1.887, allocations: 98.22 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001016/1.887, allocations: 36.53 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.617e-05/1.887, allocations: 51.98 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004635/1.888, allocations: 206.2 kB / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/1.888, allocations: 0 / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.427e-06/1.888, allocations: 0.5625 kB / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.993e-06/1.888, allocations: 1.094 kB / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001118/1.889, allocations: 477 kB / 1.091 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 8.755e-05/1.889, allocations: 14.53 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.639e-05/1.889, allocations: 41.11 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.294e-05/1.889, allocations: 15.44 kB / 1.091 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/1.89, allocations: 208.7 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/1.89, allocations: 3.656 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.828e-05/1.89, allocations: 8.703 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008831/1.891, allocations: 189.6 kB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/1.891, allocations: 4.969 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/1.891, allocations: 0 / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.181e-05/1.891, allocations: 12.67 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/1.892, allocations: 211.8 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/1.894, allocations: 447.2 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/1.894, allocations: 147 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006049/1.895, allocations: 133.4 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/1.895, allocations: 0.9375 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/1.895, allocations: 32.33 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 2.726e-06/1.895, allocations: 0 / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.00202/1.897, allocations: 400 kB / 1.092 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/1.897, allocations: 52.16 kB / 1.092 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/1.897, allocations: 155.1 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/1.897, allocations: 26.42 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.548e-05/1.897, allocations: 109.9 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.722e-05/1.897, allocations: 45.28 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-05/1.898, allocations: 28.14 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.607e-05/1.898, allocations: 326.5 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005981/1.898, allocations: 111.5 kB / 1.093 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006099/1.899, allocations: 112.4 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/1.9, allocations: 243.1 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/1.9, allocations: 0 / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001356/1.901, allocations: 283.3 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/1.901, allocations: 5.438 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/1.901, allocations: 0.6875 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/1.902, allocations: 1.531 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/1.902, allocations: 37.58 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/1.902, allocations: 4.5 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/1.902, allocations: 37.19 kB / 1.094 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/1.902, allocations: 7.469 kB / 1.094 GB, free: 1.348 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 (7): * Single equations (assignments): 5 * Array equations: 2 * 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.0001539/1.902, allocations: 124.2 kB / 1.094 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/1.903, allocations: 9.203 kB / 1.094 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.072e-05/1.903, allocations: 28.73 kB / 1.094 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.06e-05/1.903, allocations: 13.41 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/1.903, allocations: 4.75 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/1.903, allocations: 0.75 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004219/1.903, allocations: 229.5 kB / 1.094 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/1.903, allocations: 0.6875 kB / 1.094 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/1.903, allocations: 33.58 kB / 1.094 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/1.903, allocations: 6.078 kB / 1.094 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/1.903, allocations: 4.75 kB / 1.094 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/1.903, allocations: 0.7812 kB / 1.094 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.903, allocations: 4.5 kB / 1.094 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/1.905, allocations: 379.5 kB / 1.095 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.16e-05/1.905, allocations: 85.08 kB / 1.095 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/1.905, allocations: 9.219 kB / 1.095 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003363/1.905, allocations: 27.84 kB / 1.095 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/1.905, allocations: 17.33 kB / 1.095 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/1.905, allocations: 6.797 kB / 1.095 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001213/1.906, allocations: 110.8 kB / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/1.906, allocations: 0 / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005824/1.906, allocations: 49.5 kB / 1.095 GB, free: 0.5664 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 (7): * Single equations (assignments): 5 * Array equations: 2 * 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.001923/1.908, allocations: 0.9302 MB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001517/1.91, allocations: 252.4 kB / 1.096 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/1.91, allocations: 0 / 1.096 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000709/1.91, allocations: 144.6 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006695/1.911, allocations: 24.39 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006119/1.917, allocations: 2.169 MB / 1.098 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/1.918, allocations: 0.7167 MB / 1.099 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001707/1.918, allocations: 23.31 kB / 1.099 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/1.918, allocations: 43.55 kB / 1.099 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of SimCode: time 1.413e-06/1.918, allocations: 0 / 1.099 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04264/1.961, allocations: 3.577 MB / 1.103 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/14.75, allocations: 5.25 kB / 1.103 GB, free: 13.06 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches