Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Movers.Examples.MoverStages,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_Nrpm.m_flow|pump_dp.m_flow|pump_m_flow.m_flow|pump_y.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages") translateModel(Buildings.Fluid.Movers.Examples.MoverStages,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_Nrpm.m_flow|pump_dp.m_flow|pump_m_flow.m_flow|pump_y.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.029/2.029, allocations: 387.4 MB / 394.9 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 192.5 kB / 487.4 MB, free: 5.07 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.5 MB / 0.7824 GB, free: 1.031 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008915/0.0008914, allocations: 103.7 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.371e-05/1.373e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2572, allocations: 142.4 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.073/1.331, allocations: 444.6 MB / 1.64 GB, free: 10.11 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/1.331, allocations: 89.45 kB / 1.64 GB, free: 10.07 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 7.716/9.047, allocations: 2.348 GB / 3.988 GB, free: 150.4 MB / 1.198 GB Notification: Performance of FrontEnd: time 1.863e-06/9.047, allocations: 0 / 3.988 GB, free: 150.4 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.000732/9.048, allocations: 113.7 kB / 3.988 GB, free: 150.4 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.01513/9.063, allocations: 4.036 MB / 3.992 GB, free: 149 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/9.063, allocations: 11.44 kB / 3.992 GB, free: 149 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009805/9.073, allocations: 1.545 MB / 3.994 GB, free: 148.7 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06486/9.137, allocations: 31.67 MB / 4.025 GB, free: 147.1 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000242/9.138, allocations: 70.16 kB / 4.025 GB, free: 147.1 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/9.139, allocations: 147.5 kB / 4.025 GB, free: 147.1 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005225/9.144, allocations: 2.287 MB / 4.027 GB, free: 147.1 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006118/9.15, allocations: 2.544 MB / 4.029 GB, free: 146.8 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.068e-05/9.15, allocations: 3.844 kB / 4.029 GB, free: 146.8 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004286/9.151, allocations: 8.562 kB / 4.029 GB, free: 146.8 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-05/9.151, allocations: 49.5 kB / 4.029 GB, free: 146.8 MB / 1.198 GB Warning: The model contains alias variables with conflicting start and/or 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.02819/9.179, allocations: 13.05 MB / 4.042 GB, free: 142.2 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005083/9.184, allocations: 2.215 MB / 4.044 GB, free: 142.2 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001868/9.186, allocations: 0.9413 MB / 4.045 GB, free: 142.2 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01243/9.199, allocations: 5.239 MB / 4.05 GB, free: 140.3 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001699/9.2, allocations: 1.128 MB / 4.052 GB, free: 140.2 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002507/9.203, allocations: 173.1 kB / 4.052 GB, free: 140.1 MB / 1.198 GB Notification: Performance of pre-optimization done (n=92): time 7.354e-06/9.203, allocations: 0 / 4.052 GB, free: 140.1 MB / 1.198 GB Notification: Performance of matching and sorting (n=92): time 0.007964/9.211, allocations: 2.809 MB / 4.054 GB, free: 139.8 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/9.211, allocations: 118.2 kB / 4.055 GB, free: 139.7 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009772/9.221, allocations: 4.753 MB / 4.059 GB, free: 139.3 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0005538/9.221, allocations: 29.39 kB / 4.059 GB, free: 139.3 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.002468/9.224, allocations: 2.153 MB / 4.061 GB, free: 138.8 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006628/9.224, allocations: 305.8 kB / 4.062 GB, free: 138.6 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/9.225, allocations: 0 / 4.062 GB, free: 138.6 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001655/9.225, allocations: 384.8 kB / 4.062 GB, free: 138.3 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001474/9.226, allocations: 1.064 MB / 4.063 GB, free: 138.3 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00193/9.228, allocations: 2.106 MB / 4.065 GB, free: 137 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00354/9.232, allocations: 1.497 MB / 4.067 GB, free: 136.9 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.96e-05/9.232, allocations: 7.531 kB / 4.067 GB, free: 136.9 MB / 1.198 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007665/9.24, allocations: 3.629 MB / 4.07 GB, free: 136.6 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.002494/9.242, allocations: 13.6 MB / 4.083 GB, free: 122.1 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.493e-05/9.242, allocations: 33.38 kB / 4.083 GB, free: 122.1 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007228/9.243, allocations: 334 kB / 4.084 GB, free: 122.1 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/9.246, allocations: 0.5791 MB / 4.084 GB, free: 122.1 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003808/9.25, allocations: 6.01 MB / 4.09 GB, free: 117.7 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003881/9.253, allocations: 183.9 kB / 4.09 GB, free: 117.6 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003658/9.254, allocations: 218 kB / 4.091 GB, free: 117.6 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/9.254, allocations: 3.469 kB / 4.091 GB, free: 117.6 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005501/9.259, allocations: 2.729 MB / 4.093 GB, free: 117.6 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-05/9.26, allocations: 28.28 kB / 4.093 GB, free: 117.6 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006402/9.26, allocations: 340.5 kB / 4.094 GB, free: 117.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002141/9.262, allocations: 0.6244 MB / 4.094 GB, free: 117.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/9.264, allocations: 2.573 MB / 4.097 GB, free: 115.5 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003777/9.268, allocations: 178.5 kB / 4.097 GB, free: 115.5 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003573/9.268, allocations: 206.4 kB / 4.097 GB, free: 115.5 MB / 1.198 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump_Nrpm.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump_dp.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump_y.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump_m_flow.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 131 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 205 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008355/9.269, allocations: 193.5 kB / 4.097 GB, free: 115.3 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00141/9.27, allocations: 412.7 kB / 4.098 GB, free: 115.1 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006592/9.277, allocations: 2.622 MB / 4.1 GB, free: 114.9 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/9.277, allocations: 22.66 kB / 4.1 GB, free: 114.9 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/9.277, allocations: 0 / 4.1 GB, free: 114.9 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/9.277, allocations: 10.19 kB / 4.1 GB, free: 114.9 MB / 1.198 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.01325/9.29, allocations: 5.807 MB / 4.106 GB, free: 114.4 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/9.29, allocations: 0 / 4.106 GB, free: 114.4 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/9.291, allocations: 260 kB / 4.106 GB, free: 114.4 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006534/9.292, allocations: 364 kB / 4.106 GB, free: 114.4 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/9.292, allocations: 32.75 kB / 4.107 GB, free: 114.4 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/9.295, allocations: 4.983 MB / 4.111 GB, free: 110.1 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/9.295, allocations: 6.859 kB / 4.111 GB, free: 110.1 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004977/9.3, allocations: 2.466 MB / 4.114 GB, free: 109.5 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/9.302, allocations: 0.9233 MB / 4.115 GB, free: 109.1 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001349/9.303, allocations: 7.281 kB / 4.115 GB, free: 109.1 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002886/9.306, allocations: 185.8 kB / 4.115 GB, free: 109.1 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/9.307, allocations: 85.92 kB / 4.115 GB, free: 109.1 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/9.307, allocations: 86.72 kB / 4.115 GB, free: 109.1 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.006/9.313, allocations: 3.542 MB / 4.119 GB, free: 108.9 MB / 1.198 GB Notification: Performance of sort global known variables: time 3.51e-07/9.313, allocations: 0 / 4.119 GB, free: 108.9 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.008958/9.322, allocations: 1.934 MB / 4.12 GB, free: 108.7 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {1 4,1 4,1 1,1 4,1 4,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005507/9.327, allocations: 2.281 MB / 4.123 GB, free: 108.1 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.007403/9.335, allocations: 4.049 MB / 4.127 GB, free: 108 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/9.335, allocations: 3.906 kB / 4.127 GB, free: 108 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.001441/9.336, allocations: 0.8411 MB / 4.127 GB, free: 108 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009634/9.346, allocations: 1.947 MB / 4.129 GB, free: 108 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/9.359, allocations: 5.638 MB / 4.135 GB, free: 106.6 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003198/9.362, allocations: 2.707 MB / 4.137 GB, free: 105.8 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.009822/9.372, allocations: 2.181 MB / 4.14 GB, free: 105.8 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007908/9.373, allocations: 240.1 kB / 4.14 GB, free: 105.8 MB / 1.198 GB Notification: Performance of SimCode: time 8.21e-07/9.373, allocations: 0 / 4.14 GB, free: 105.8 MB / 1.198 GB Notification: Performance of Templates: time 0.1375/9.51, allocations: 97.39 MB / 4.235 GB, free: 100.3 MB / 1.198 GB make -j1 -f Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.makefile (rm -f Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.pipe ; mkfifo Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.pipe >> ../files/Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.sim & ./Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Movers_Examples_MoverStages.csv","../files/Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches