Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Fluid.Movers.Examples.ClosedLoop_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y") translateModel(Buildings.Fluid.Movers.Examples.ClosedLoop_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001529, allocations: 105.8 kB / 16.27 MB, free: 6.414 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.001484/0.001485, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.392/1.392, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.724/2.724, allocations: 482.4 MB / 0.7553 GB, free: 6.957 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 68.91 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7823/0.7842, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Movers.Examples.ClosedLoop_y): time 0.2819/1.066, allocations: 206.1 MB / 1.284 GB, free: 148 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02336/1.09, allocations: 15.39 MB / 1.299 GB, free: 0.7109 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002491/1.092, allocations: 55.69 kB / 1.299 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0123/1.104, allocations: 5.979 MB / 1.305 GB, free: 10.67 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.007531/1.112, allocations: 2.571 MB / 1.308 GB, free: 8.086 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.004175/1.116, allocations: 1.572 MB / 1.309 GB, free: 6.52 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0134/1.13, allocations: 8.728 MB / 1.318 GB, free: 13.78 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002515/1.132, allocations: 1.375 MB / 1.319 GB, free: 12.37 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004596/1.137, allocations: 2.117 MB / 1.321 GB, free: 10.24 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002296/1.139, allocations: 1.171 MB / 1.322 GB, free: 9.07 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0004606/1.14, allocations: 168 kB / 1.322 GB, free: 8.906 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005619/1.145, allocations: 2.701 MB / 1.325 GB, free: 6.199 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0009773/1.146, allocations: 0.709 MB / 1.326 GB, free: 5.488 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.002052/1.148, allocations: 1.065 MB / 1.327 GB, free: 4.418 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.007439/1.156, allocations: 3.806 MB / 1.33 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/1.156, allocations: 0 / 1.33 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.034e-06/1.156, allocations: 0 / 1.33 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0001168/1.156, allocations: 0 / 1.33 GB, free: 0.6016 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.006973/1.163, allocations: 2.515 MB / 1.333 GB, free: 14.01 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/1.163, allocations: 16.02 kB / 1.333 GB, free: 14 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004352/1.167, allocations: 0.614 MB / 1.334 GB, free: 13.38 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005421/1.173, allocations: 2.105 MB / 1.336 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/1.173, allocations: 78 kB / 1.336 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/1.173, allocations: 108 kB / 1.336 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00288/1.176, allocations: 1.284 MB / 1.337 GB, free: 9.723 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/1.176, allocations: 7.938 kB / 1.337 GB, free: 9.715 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/1.176, allocations: 43.94 kB / 1.337 GB, free: 9.672 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.974e-05/1.176, allocations: 34 kB / 1.337 GB, free: 9.637 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002547/1.179, allocations: 1.007 MB / 1.338 GB, free: 8.629 MB / 1.061 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008658/1.187, allocations: 5.645 MB / 1.344 GB, free: 2.621 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002806/1.19, allocations: 0.9632 MB / 1.345 GB, free: 1.648 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/1.191, allocations: 498 kB / 1.345 GB, free: 1.16 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00021/1.192, allocations: 101.6 kB / 1.345 GB, free: 1.043 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001277/1.193, allocations: 0.5886 MB / 1.346 GB, free: 452 kB / 1.061 GB Notification: Performance of pre-optimization done (n=66): time 3.186e-06/1.193, allocations: 0 / 1.346 GB, free: 452 kB / 1.061 GB Notification: Performance of matching and sorting (n=66): time 0.004189/1.197, allocations: 1.471 MB / 1.347 GB, free: 14.94 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/1.197, allocations: 63.97 kB / 1.347 GB, free: 14.87 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002588/1.2, allocations: 1.681 MB / 1.349 GB, free: 13.19 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001256/1.2, allocations: 45.7 kB / 1.349 GB, free: 13.14 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007847/1.201, allocations: 0.764 MB / 1.35 GB, free: 12.36 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002811/1.201, allocations: 240.7 kB / 1.35 GB, free: 12.12 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004839/1.202, allocations: 286.6 kB / 1.35 GB, free: 11.84 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001858/1.202, allocations: 353.9 kB / 1.35 GB, free: 11.49 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/1.203, allocations: 0.7673 MB / 1.351 GB, free: 10.72 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001712/1.205, allocations: 1.038 MB / 1.352 GB, free: 9.574 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002939/1.208, allocations: 1.702 MB / 1.354 GB, free: 7.797 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.208, allocations: 0 / 1.354 GB, free: 7.797 MB / 1.076 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004161/1.212, allocations: 2.147 MB / 1.356 GB, free: 5.633 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.823e-05/1.212, allocations: 37.69 kB / 1.356 GB, free: 5.59 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/1.212, allocations: 4 kB / 1.356 GB, free: 5.586 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005224/1.213, allocations: 157.2 kB / 1.356 GB, free: 5.43 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/1.214, allocations: 247.7 kB / 1.356 GB, free: 5.188 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/1.215, allocations: 1.248 MB / 1.358 GB, free: 3.891 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/1.216, allocations: 147.3 kB / 1.358 GB, free: 3.746 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/1.217, allocations: 63.98 kB / 1.358 GB, free: 3.684 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00193/1.219, allocations: 1.069 MB / 1.359 GB, free: 2.609 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001499/1.22, allocations: 0.9363 MB / 1.36 GB, free: 1.574 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002578/1.223, allocations: 1.499 MB / 1.361 GB, free: 16 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.761e-06/1.223, allocations: 4 kB / 1.361 GB, free: 15.99 MB / 1.092 GB Notification: Performance of matching and sorting (n=165) (initialization_lambda0): time 0.003783/1.226, allocations: 1.937 MB / 1.363 GB, free: 14.04 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.924e-05/1.226, allocations: 33.7 kB / 1.363 GB, free: 14 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/1.226, allocations: 4 kB / 1.363 GB, free: 14 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006449/1.227, allocations: 180.8 kB / 1.363 GB, free: 13.82 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009655/1.228, allocations: 231.7 kB / 1.364 GB, free: 13.59 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005381/1.233, allocations: 3.434 MB / 1.367 GB, free: 9.926 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/1.235, allocations: 131.7 kB / 1.367 GB, free: 9.797 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/1.235, allocations: 51.98 kB / 1.367 GB, free: 9.746 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 6 (y.count,$PRE.y.count,y.T_start,$PRE.y.T_start,$whenCondition1,conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003457/1.235, allocations: 244.1 kB / 1.367 GB, free: 9.5 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000316/1.236, allocations: 165.8 kB / 1.368 GB, free: 9.336 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/1.239, allocations: 1.118 MB / 1.369 GB, free: 8.203 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/1.239, allocations: 8 kB / 1.369 GB, free: 8.195 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/1.239, allocations: 4 kB / 1.369 GB, free: 8.191 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002243/1.241, allocations: 0.9748 MB / 1.37 GB, free: 7.18 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004958/1.246, allocations: 2.5 MB / 1.372 GB, free: 4.609 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/1.246, allocations: 0 / 1.372 GB, free: 4.609 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009657/1.247, allocations: 175.6 kB / 1.372 GB, free: 4.438 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003097/1.247, allocations: 96.81 kB / 1.372 GB, free: 4.34 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.072e-05/1.247, allocations: 23.98 kB / 1.372 GB, free: 4.316 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009075/1.248, allocations: 1.212 MB / 1.373 GB, free: 3.055 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.248, allocations: 8.188 kB / 1.373 GB, free: 3.047 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003718/1.252, allocations: 1.66 MB / 1.375 GB, free: 1.359 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005935/1.252, allocations: 326.9 kB / 1.375 GB, free: 1.02 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/1.253, allocations: 12 kB / 1.375 GB, free: 1.008 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008941/1.254, allocations: 57.64 kB / 1.375 GB, free: 0.9531 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/1.254, allocations: 56.41 kB / 1.376 GB, free: 0.8945 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-05/1.254, allocations: 31.98 kB / 1.376 GB, free: 0.8633 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001707/1.255, allocations: 1.13 MB / 1.377 GB, free: 15.74 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.5e-07/1.255, allocations: 0 / 1.377 GB, free: 15.74 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.002401/1.258, allocations: 0.963 MB / 1.378 GB, free: 14.78 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (fan.vol.dynBal.medium.Xi[1],fan.vol.dynBal.U,fan.vol.dynBal.m,fan.motSpe.y,conPID.I.y) * Number of discrete variables: 3 ($whenCondition1,y.T_start,y.count) * Number of discrete states: 1 (y.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001338/1.259, allocations: 0.546 MB / 1.378 GB, free: 14.23 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.005552/1.265, allocations: 2.608 MB / 1.381 GB, free: 11.59 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/1.265, allocations: 0 / 1.381 GB, free: 11.59 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001203/1.266, allocations: 475.7 kB / 1.381 GB, free: 11.12 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00365/1.27, allocations: 0.873 MB / 1.382 GB, free: 10.28 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006725/1.276, allocations: 3.372 MB / 1.385 GB, free: 6.859 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/1.278, allocations: 1.434 MB / 1.387 GB, free: 5.398 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000491/1.278, allocations: 135.4 kB / 1.387 GB, free: 5.266 MB / 1.107 GB Notification: Performance of SimCode: time 6.02e-07/1.278, allocations: 0 / 1.387 GB, free: 5.266 MB / 1.107 GB Notification: Performance of Templates: time 0.0629/1.341, allocations: 45.71 MB / 1.431 GB, free: 7.734 MB / 1.154 GB make -j1 -f Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y.makefile (rm -f Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe >> ../files/Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y.sim & ./Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Movers_Examples_ClosedLoop_y.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Movers.Examples.ClosedLoop_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches