Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM.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.PowerLawFixedM,fileNamePrefix="Buildings_latest_Buildings_Airflow_Multizone_BaseClasses_Examples_PowerLawFixedM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM,fileNamePrefix="Buildings_latest_Buildings_Airflow_Multizone_BaseClasses_Examples_PowerLawFixedM",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.005109/0.005109, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001549/0.001549, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.785/2.785, allocations: 482.4 MB / 0.7548 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.003159/0.003159, allocations: 68.34 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.3009, allocations: 162.2 MB / 1.241 GB, free: 9.305 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM): time 0.002254/0.3032, allocations: 1.29 MB / 1.243 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0005417/0.3038, allocations: 299.2 kB / 1.243 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.652e-05/0.3038, allocations: 0 / 1.243 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.019e-05/0.3038, allocations: 3.938 kB / 1.243 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.138e-05/0.3039, allocations: 19.84 kB / 1.243 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.3042, allocations: 75.72 kB / 1.243 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.659e-05/0.3043, allocations: 39.91 kB / 1.243 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.774e-05/0.3043, allocations: 1.406 kB / 1.243 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.421e-05/0.3044, allocations: 31.86 kB / 1.243 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.259e-05/0.3045, allocations: 15.91 kB / 1.243 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.3045, allocations: 0 / 1.243 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.3047, allocations: 83.91 kB / 1.243 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.3047, allocations: 0 / 1.243 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.787e-05/0.3047, allocations: 11.94 kB / 1.243 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.3049, allocations: 76 kB / 1.243 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3049, allocations: 7.938 kB / 1.243 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3049, allocations: 0 / 1.243 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.3049, allocations: 0 / 1.243 GB, free: 7.352 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003882/0.3053, allocations: 355.2 kB / 1.244 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.3054, allocations: 12.03 kB / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.709e-05/0.3054, allocations: 34.73 kB / 1.244 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.244e-05/0.3054, allocations: 0.9375 kB / 1.244 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.3056, allocations: 172.3 kB / 1.244 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.3056, allocations: 4.375 kB / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.774e-06/0.3056, allocations: 8.125 kB / 1.244 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.185e-05/0.3057, allocations: 37.69 kB / 1.244 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.3057, allocations: 0 / 1.244 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.754e-06/0.3057, allocations: 0 / 1.244 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.3057, allocations: 0 / 1.244 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.855e-05/0.3058, allocations: 12 kB / 1.244 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.3059, allocations: 161.7 kB / 1.244 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.407e-05/0.306, allocations: 34.52 kB / 1.244 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.478e-05/0.3061, allocations: 16.86 kB / 1.244 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001196/0.3073, allocations: 1.183 MB / 1.245 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.3073, allocations: 34.56 kB / 1.245 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3073, allocations: 4 kB / 1.245 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0001441/0.3075, allocations: 53.64 kB / 1.245 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.3075, allocations: 51.41 kB / 1.245 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.666e-05/0.3076, allocations: 113.8 kB / 1.246 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.3076, allocations: 25.7 kB / 1.246 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.822e-05/0.3077, allocations: 80.14 kB / 1.246 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.3077, allocations: 19.88 kB / 1.246 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.3077, allocations: 13.72 kB / 1.246 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3079, allocations: 314.8 kB / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.791e-05/0.3079, allocations: 4 kB / 1.246 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.649e-05/0.3079, allocations: 11.98 kB / 1.246 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.915e-05/0.308, allocations: 20.8 kB / 1.246 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.308, allocations: 3.938 kB / 1.246 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.745e-05/0.308, allocations: 49.58 kB / 1.246 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.3081, allocations: 4 kB / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3081, allocations: 4 kB / 1.246 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.3081, allocations: 0 / 1.246 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.376e-05/0.3081, allocations: 11.94 kB / 1.246 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.349e-06/0.3081, allocations: 0 / 1.246 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.174e-05/0.3082, allocations: 8 kB / 1.246 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.3082, allocations: 0 / 1.246 GB, free: 4.035 MB / 0.9669 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 (3): * Single equations (assignments): 3 * 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.517e-05/0.3083, allocations: 106.4 kB / 1.246 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.3083, allocations: 7.938 kB / 1.246 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.3084, allocations: 65.58 kB / 1.246 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.3084, allocations: 0 / 1.246 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.3084, allocations: 0 / 1.246 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.3084, allocations: 0 / 1.246 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.3086, allocations: 161.6 kB / 1.246 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3086, allocations: 4 kB / 1.246 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.915e-05/0.3086, allocations: 7.938 kB / 1.246 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3086, allocations: 0 / 1.246 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.3086, allocations: 0 / 1.246 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.3086, allocations: 3.984 kB / 1.246 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3087, allocations: 0 / 1.246 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.3088, allocations: 81.39 kB / 1.247 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.622e-05/0.3088, allocations: 89.14 kB / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.3089, allocations: 0 / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.789e-05/0.3089, allocations: 0 / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.504e-05/0.3089, allocations: 3.984 kB / 1.247 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.3089, allocations: 4 kB / 1.247 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.601e-05/0.309, allocations: 83.28 kB / 1.247 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.309, allocations: 0 / 1.247 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002123/0.3092, allocations: 35.86 kB / 1.247 GB, free: 3.285 MB / 0.9669 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 (3): * Single equations (assignments): 3 * 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.0004654/0.3097, allocations: 0.6395 MB / 1.247 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 7.301e-05/0.3098, allocations: 12 kB / 1.247 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3098, allocations: 0 / 1.247 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.488e-05/0.3098, allocations: 23.86 kB / 1.247 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001693/0.31, allocations: 4 kB / 1.247 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003639/0.3103, allocations: 163.5 kB / 1.248 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.3106, allocations: 0.6845 MB / 1.248 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.078e-05/0.3107, allocations: 8 kB / 1.248 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.65e-05/0.3107, allocations: 11.44 kB / 1.248 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.3107, allocations: 0 / 1.248 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.3325, allocations: 1.642 MB / 1.25 GB, free: 148 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.616/7.948, allocations: 8.672 kB / 1.25 GB, free: 144 kB / 0.9669 GB (rm -f Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM.pipe ; mkfifo Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM.pipe ; head -c 1048576 < Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM.pipe >> ../files/Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM_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_PowerLawFixedM.fmu > Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Airflow_Multizone_BaseClasses_Examples_PowerLawFixedM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Airflow.Multizone.BaseClasses.Examples.PowerLawFixedM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches