Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Airflow.Multizone.Examples.PowerLaw,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pow_2dat.V_flow|pow_1dat.V_flow|pow_V_flow.V_flow|pow_m_flow.V_flow",fileNamePrefix="Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw") translateModel(Buildings.Airflow.Multizone.Examples.PowerLaw,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pow_2dat.V_flow|pow_1dat.V_flow|pow_V_flow.V_flow|pow_m_flow.V_flow",fileNamePrefix="Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 98.53 kB / 15.05 MB, free: 1.105 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.001563/0.001563, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.2 MB / 239.9 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.314/2.314, allocations: 390.2 MB / 0.6653 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003664, allocations: 12 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5934/0.5938, allocations: 142.3 MB / 0.9535 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.Examples.PowerLaw): time 0.1746/0.7685, allocations: 159.8 MB / 1.11 GB, free: 0 / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.006508/0.7751, allocations: 4.083 MB / 1.114 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009492/0.7761, allocations: 15.94 kB / 1.114 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.00137/0.7774, allocations: 414 kB / 1.114 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004096/0.7816, allocations: 1.476 MB / 1.115 GB, free: 10.01 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001874/0.7834, allocations: 0.6381 MB / 1.116 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002166/0.7856, allocations: 0.9949 MB / 1.117 GB, free: 8.375 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001308/0.7869, allocations: 0.8269 MB / 1.118 GB, free: 7.535 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001941/0.7889, allocations: 0.9545 MB / 1.119 GB, free: 6.578 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009083/0.7898, allocations: 0.666 MB / 1.119 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.79, allocations: 72 kB / 1.119 GB, free: 5.84 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001688/0.7917, allocations: 0.6747 MB / 1.12 GB, free: 5.164 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000301/0.792, allocations: 311.1 kB / 1.12 GB, free: 4.859 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.7922, allocations: 181.2 kB / 1.121 GB, free: 4.676 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.7934, allocations: 1.033 MB / 1.122 GB, free: 3.641 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.7934, allocations: 0 / 1.122 GB, free: 3.641 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.944e-06/0.7934, allocations: 0 / 1.122 GB, free: 3.641 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.01e-05/0.7934, allocations: 0 / 1.122 GB, free: 3.641 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002505/0.7959, allocations: 1.18 MB / 1.123 GB, free: 2.41 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.796, allocations: 8.031 kB / 1.123 GB, free: 2.402 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001579/0.7976, allocations: 246.8 kB / 1.123 GB, free: 2.16 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008864/0.7985, allocations: 0.557 MB / 1.124 GB, free: 1.562 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.7985, allocations: 37 kB / 1.124 GB, free: 1.527 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.7986, allocations: 55.98 kB / 1.124 GB, free: 1.473 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.8, allocations: 0.9609 MB / 1.125 GB, free: 448 kB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.8001, allocations: 7.844 kB / 1.125 GB, free: 440 kB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.984e-05/0.8002, allocations: 27.98 kB / 1.125 GB, free: 412 kB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.122e-05/0.8002, allocations: 23.98 kB / 1.125 GB, free: 388 kB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.8017, allocations: 0.9447 MB / 1.126 GB, free: 15.43 MB / 0.8887 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.005023/0.8067, allocations: 4.184 MB / 1.13 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000921/0.8076, allocations: 0.6078 MB / 1.13 GB, free: 10.46 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008046/0.8085, allocations: 0.7237 MB / 1.131 GB, free: 9.59 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.8085, allocations: 39 kB / 1.131 GB, free: 9.543 MB / 0.8887 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001483/0.81, allocations: 347.3 kB / 1.131 GB, free: 9.203 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=50): time 2.735e-06/0.81, allocations: 0 / 1.131 GB, free: 9.203 MB / 0.8887 GB Notification: Performance of matching and sorting (n=50): time 0.01758/0.8276, allocations: 3.678 MB / 1.135 GB, free: 5.469 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.8277, allocations: 63.84 kB / 1.135 GB, free: 5.395 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008893/0.8286, allocations: 0.7 MB / 1.136 GB, free: 4.688 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.8287, allocations: 33.7 kB / 1.136 GB, free: 4.648 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/0.8289, allocations: 320.6 kB / 1.136 GB, free: 4.332 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.8291, allocations: 181.3 kB / 1.136 GB, free: 4.152 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.153e-05/0.8292, allocations: 12 kB / 1.136 GB, free: 4.141 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.511e-05/0.8293, allocations: 322 kB / 1.136 GB, free: 3.82 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006411/0.8299, allocations: 400.9 kB / 1.137 GB, free: 3.43 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/0.8306, allocations: 485.5 kB / 1.137 GB, free: 2.934 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007248/0.8313, allocations: 448.7 kB / 1.138 GB, free: 2.5 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.8313, allocations: 4 kB / 1.138 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01125/0.8426, allocations: 2.486 MB / 1.14 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.8427, allocations: 11.95 kB / 1.14 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.8427, allocations: 0 / 1.14 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009351/0.852, allocations: 1.554 MB / 1.142 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005241/0.8526, allocations: 99.86 kB / 1.142 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/0.8643, allocations: 6.697 MB / 1.148 GB, free: 7.336 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009018/0.8653, allocations: 27.98 kB / 1.148 GB, free: 7.309 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.746e-05/0.8654, allocations: 44.02 kB / 1.148 GB, free: 7.266 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,100.0%) 4,(4,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003493/0.8657, allocations: 209.7 kB / 1.149 GB, free: 7.051 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.8659, allocations: 86.92 kB / 1.149 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005027/0.8709, allocations: 1.667 MB / 1.15 GB, free: 5.281 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.8709, allocations: 11.95 kB / 1.15 GB, free: 5.27 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.871, allocations: 8 kB / 1.15 GB, free: 5.262 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.871, allocations: 3.984 kB / 1.15 GB, free: 5.258 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005727/0.8767, allocations: 2.474 MB / 1.153 GB, free: 2.699 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.8767, allocations: 0 / 1.153 GB, free: 2.699 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004503/0.8772, allocations: 87.89 kB / 1.153 GB, free: 2.613 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003318/0.8805, allocations: 0.6534 MB / 1.153 GB, free: 1.953 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.059e-05/0.8806, allocations: 23.94 kB / 1.153 GB, free: 1.93 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006429/0.887, allocations: 4.51 MB / 1.158 GB, free: 13.16 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.8871, allocations: 0 / 1.158 GB, free: 13.16 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005217/0.8923, allocations: 2.161 MB / 1.16 GB, free: 10.92 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004866/0.8928, allocations: 235.9 kB / 1.16 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.8929, allocations: 12.09 kB / 1.16 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006155/0.8935, allocations: 35.94 kB / 1.16 GB, free: 10.62 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.8937, allocations: 52.47 kB / 1.16 GB, free: 10.57 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.633e-05/0.8938, allocations: 20 kB / 1.16 GB, free: 10.55 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0005808/0.8944, allocations: 0.499 MB / 1.161 GB, free: 10.05 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8944, allocations: 3.938 kB / 1.161 GB, free: 10.05 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0009612/0.8953, allocations: 287.8 kB / 1.161 GB, free: 9.766 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (pow_m_flow.mExc,pow_V_flow.mExc,pow_1dat.mExc,pow_2dat.mExc) * 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 (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,92.0%) 3,(4,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004698/0.8958, allocations: 219.2 kB / 1.161 GB, free: 9.547 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002953/0.8988, allocations: 1.386 MB / 1.163 GB, free: 8.141 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.8988, allocations: 0 / 1.163 GB, free: 8.141 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001738/0.9005, allocations: 0.8913 MB / 1.164 GB, free: 7.219 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002051/0.9026, allocations: 434.8 kB / 1.164 GB, free: 6.805 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.9053, allocations: 1.979 MB / 1.166 GB, free: 4.789 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000505/0.9058, allocations: 0.9984 MB / 1.167 GB, free: 3.766 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0006294/0.9064, allocations: 162.6 kB / 1.167 GB, free: 3.602 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.9066, allocations: 71.42 kB / 1.167 GB, free: 3.531 MB / 0.92 GB Notification: Performance of SimCode: time 7.31e-07/0.9067, allocations: 0 / 1.167 GB, free: 3.531 MB / 0.92 GB Notification: Performance of Templates: time 0.03064/0.9373, allocations: 20.81 MB / 1.187 GB, free: 14.96 MB / 0.9512 GB make -j1 -f Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw.makefile (rm -f Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw.pipe ; mkfifo Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw.pipe ; head -c 1048576 < Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw.pipe >> ../files/Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw.sim & ./Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Airflow_Multizone_Examples_PowerLaw.csv","../files/Buildings_9_Buildings.Airflow.Multizone.Examples.PowerLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches