Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.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 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: "" <> buildModelFMU(Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw,fileNamePrefix="Buildings_latest_Buildings_Airflow_Multizone_BaseClasses_Examples_PowerLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw,fileNamePrefix="Buildings_latest_Buildings_Airflow_Multizone_BaseClasses_Examples_PowerLaw",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.004225/0.004225, allocations: 98.64 kB / 15.73 MB, free: 6.039 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.001246/0.001247, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.922/2.922, allocations: 482.4 MB / 0.7548 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 72.03 kB / 1.083 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2978, allocations: 162.2 MB / 1.241 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw): time 0.002216/0.3001, allocations: 1.261 MB / 1.243 GB, free: 8.969 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000282/0.3004, allocations: 115.5 kB / 1.243 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.722e-05/0.3004, allocations: 4 kB / 1.243 GB, free: 8.852 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.753e-05/0.3004, allocations: 0 / 1.243 GB, free: 8.852 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.216e-05/0.3005, allocations: 11.92 kB / 1.243 GB, free: 8.84 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001928/0.3007, allocations: 35.89 kB / 1.243 GB, free: 8.805 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.756e-05/0.3008, allocations: 11.94 kB / 1.243 GB, free: 8.793 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.276e-05/0.3008, allocations: 4 kB / 1.243 GB, free: 8.789 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.319e-05/0.3008, allocations: 11.91 kB / 1.243 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.497e-05/0.3009, allocations: 4 kB / 1.243 GB, free: 8.773 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.3009, allocations: 0 / 1.243 GB, free: 8.773 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.3011, allocations: 51.94 kB / 1.243 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.358e-06/0.3011, allocations: 8 kB / 1.243 GB, free: 8.715 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.289e-05/0.3011, allocations: 7.875 kB / 1.243 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.3012, allocations: 47.81 kB / 1.243 GB, free: 8.66 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3012, allocations: 0 / 1.243 GB, free: 8.66 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3012, allocations: 0 / 1.243 GB, free: 8.66 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.375e-06/0.3013, allocations: 0 / 1.243 GB, free: 8.66 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003948/0.3017, allocations: 333.6 kB / 1.243 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3017, allocations: 8.031 kB / 1.243 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.33e-05/0.3017, allocations: 34.75 kB / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.891e-05/0.3018, allocations: 4.938 kB / 1.243 GB, free: 8.234 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.3019, allocations: 168.4 kB / 1.244 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.3019, allocations: 4.375 kB / 1.244 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-06/0.3019, allocations: 4.125 kB / 1.244 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.098e-05/0.302, allocations: 29.7 kB / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.302, allocations: 0 / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.683e-06/0.302, allocations: 0 / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.302, allocations: 0 / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.432e-05/0.3021, allocations: 7.938 kB / 1.244 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.3023, allocations: 161.6 kB / 1.244 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.255e-05/0.3023, allocations: 22.61 kB / 1.244 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.385e-05/0.3023, allocations: 16.84 kB / 1.244 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007522/0.3031, allocations: 0.6013 MB / 1.244 GB, free: 6.992 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.3031, allocations: 34.56 kB / 1.244 GB, free: 6.949 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 3.085e-06/0.3031, allocations: 4 kB / 1.244 GB, free: 6.945 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001305/0.3033, allocations: 41.62 kB / 1.244 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.3033, allocations: 55.41 kB / 1.244 GB, free: 6.832 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.289e-05/0.3034, allocations: 97.86 kB / 1.245 GB, free: 6.727 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.3034, allocations: 25.7 kB / 1.245 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.036e-05/0.3035, allocations: 84.08 kB / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.3035, allocations: 11.88 kB / 1.245 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/0.3035, allocations: 17.72 kB / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.3037, allocations: 315 kB / 1.245 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.189e-05/0.3037, allocations: 0 / 1.245 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.014e-05/0.3037, allocations: 4 kB / 1.245 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.061e-05/0.3037, allocations: 12.86 kB / 1.245 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3038, allocations: 0 / 1.245 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.026e-05/0.3038, allocations: 53.5 kB / 1.245 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.3039, allocations: 4 kB / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-06/0.3039, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.3039, allocations: 4.094 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.047e-05/0.3039, allocations: 4.188 kB / 1.245 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.3039, allocations: 3.984 kB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.725e-05/0.304, allocations: 0 / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-06/0.304, allocations: 0 / 1.245 GB, free: 6.164 MB / 0.9981 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 7.659e-05/0.3041, allocations: 114.4 kB / 1.245 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.156e-05/0.3041, allocations: 7.922 kB / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.318e-05/0.3042, allocations: 48.75 kB / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3042, allocations: 0 / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3042, allocations: 4.031 kB / 1.245 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3042, allocations: 4 kB / 1.245 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.3043, allocations: 153.6 kB / 1.245 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3043, allocations: 0 / 1.245 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.046e-05/0.3044, allocations: 4 kB / 1.245 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.3044, allocations: 0 / 1.245 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.3044, allocations: 4 kB / 1.245 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3044, allocations: 3.984 kB / 1.245 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3044, allocations: 0 / 1.245 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.72e-05/0.3045, allocations: 69.03 kB / 1.245 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.678e-05/0.3045, allocations: 77.11 kB / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.3046, allocations: 11.98 kB / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.844e-05/0.3046, allocations: 0 / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.947e-06/0.3046, allocations: 3.938 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.3046, allocations: 0 / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.226e-05/0.3046, allocations: 79.28 kB / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3046, allocations: 0 / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002036/0.3049, allocations: 19.97 kB / 1.246 GB, free: 5.469 MB / 0.9981 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.000434/0.3053, allocations: 0.6163 MB / 1.246 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.169e-05/0.3054, allocations: 7.938 kB / 1.246 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3054, allocations: 7.938 kB / 1.246 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.182e-05/0.3054, allocations: 8.094 kB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.3056, allocations: 7.984 kB / 1.246 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009586/0.3066, allocations: 1.091 MB / 1.247 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.3069, allocations: 0.6729 MB / 1.248 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.461e-05/0.3069, allocations: 4 kB / 1.248 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.163e-05/0.307, allocations: 7.438 kB / 1.248 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of SimCode: time 2.61e-07/0.307, allocations: 4 kB / 1.248 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02342/0.3304, allocations: 1.429 MB / 1.249 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/7.933, allocations: 14.33 kB / 1.249 GB, free: 1.562 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw.pipe ; mkfifo Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw.pipe ; head -c 1048576 < Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw.pipe >> ../files/Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Airflow_Multizone_BaseClasses_Examples_PowerLaw.fmu > Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Airflow_Multizone_BaseClasses_Examples_PowerLaw.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches