Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_phiSor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_phiSor",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.001635/0.001635, allocations: 111.9 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 192.7 kB / 16.53 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.215/2.215, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003558/0.003558, allocations: 283 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.521/1.521, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 95.14 kB / 0.5953 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2373, allocations: 86.97 MB / 0.6803 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor): time 0.003346/0.2407, allocations: 1.693 MB / 0.6819 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007619/0.2415, allocations: 0.5105 MB / 0.6824 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.711e-05/0.2415, allocations: 4.562 kB / 0.6824 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000401/0.2419, allocations: 152.1 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.712e-05/0.242, allocations: 60.61 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.2423, allocations: 68.27 kB / 0.6827 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.2425, allocations: 99.56 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.206e-05/0.2425, allocations: 5.031 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.236e-05/0.2426, allocations: 36.88 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.197e-05/0.2427, allocations: 55.7 kB / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.2427, allocations: 0 / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.2429, allocations: 87.84 kB / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.001e-05/0.243, allocations: 59.8 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.627e-05/0.2431, allocations: 55.62 kB / 0.6831 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.2434, allocations: 195.3 kB / 0.6833 GB, free: 13.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2434, allocations: 0 / 0.6833 GB, free: 13.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2434, allocations: 0 / 0.6833 GB, free: 13.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.2434, allocations: 0 / 0.6833 GB, free: 13.5 MB / 494.1 MB 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.0006172/0.244, allocations: 478.3 kB / 0.6837 GB, free: 12.98 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.2441, allocations: 12.03 kB / 0.6837 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.645e-05/0.2441, allocations: 34.75 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.2442, allocations: 20.66 kB / 0.6838 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.2443, allocations: 219.7 kB / 0.684 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.2443, allocations: 8.375 kB / 0.684 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.2444, allocations: 384 / 0.684 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.2446, allocations: 61.98 kB / 0.6841 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.2446, allocations: 0 / 0.6841 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.2446, allocations: 4 kB / 0.6841 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.2446, allocations: 3.984 kB / 0.6841 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.2448, allocations: 59.95 kB / 0.6841 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005338/0.2453, allocations: 332.8 kB / 0.6845 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.2455, allocations: 62.48 kB / 0.6845 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.2456, allocations: 44.89 kB / 0.6846 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.314e-05/0.2457, allocations: 8 kB / 0.6846 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.2457, allocations: 30.56 kB / 0.6846 GB, free: 11.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.302e-06/0.2457, allocations: 0 / 0.6846 GB, free: 11.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0004136/0.2461, allocations: 129.4 kB / 0.6847 GB, free: 11.85 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.03e-05/0.2462, allocations: 63.47 kB / 0.6848 GB, free: 11.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.2465, allocations: 258.7 kB / 0.685 GB, free: 11.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.2465, allocations: 25.7 kB / 0.6851 GB, free: 11.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.2466, allocations: 132.1 kB / 0.6852 GB, free: 11.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.889e-05/0.2466, allocations: 3.906 kB / 0.6852 GB, free: 11.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.393e-05/0.2467, allocations: 17.66 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.2468, allocations: 338.8 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.985e-05/0.2469, allocations: 23.98 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.08e-05/0.247, allocations: 35.91 kB / 0.6856 GB, free: 10.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.2472, allocations: 64.75 kB / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2472, allocations: 0 / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002411/0.2474, allocations: 117.4 kB / 0.6858 GB, free: 10.74 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.2475, allocations: 13.72 kB / 0.6858 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2475, allocations: 3.984 kB / 0.6858 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2475, allocations: 0 / 0.6858 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.407e-05/0.2476, allocations: 4 kB / 0.6858 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2476, allocations: 0 / 0.6858 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.624e-05/0.2477, allocations: 7.984 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.2477, allocations: 4 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB 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 0.000108/0.2478, allocations: 139.1 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.146e-05/0.2479, allocations: 19.81 kB / 0.6859 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002787/0.2481, allocations: 110.5 kB / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2482, allocations: 0 / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2482, allocations: 0 / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2482, allocations: 3.984 kB / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002196/0.2484, allocations: 217.6 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2484, allocations: 3.938 kB / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.833e-05/0.2485, allocations: 7.984 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2485, allocations: 8.031 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.2485, allocations: 0 / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.2485, allocations: 0 / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2485, allocations: 0 / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.2488, allocations: 207.2 kB / 0.6865 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.727e-05/0.2489, allocations: 88.92 kB / 0.6866 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.2489, allocations: 12.03 kB / 0.6866 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.797e-05/0.249, allocations: 7.984 kB / 0.6866 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.235e-05/0.249, allocations: 0 / 0.6866 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.249, allocations: 0 / 0.6866 GB, free: 9.793 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.2492, allocations: 193.9 kB / 0.6868 GB, free: 9.605 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2492, allocations: 0 / 0.6868 GB, free: 9.605 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002908/0.2495, allocations: 35.94 kB / 0.6868 GB, free: 9.57 MB / 494.1 MB 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.0007225/0.2502, allocations: 0.7784 MB / 0.6876 GB, free: 8.766 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000266/0.2505, allocations: 59.95 kB / 0.6876 GB, free: 8.707 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2505, allocations: 0 / 0.6876 GB, free: 8.707 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.2506, allocations: 40 kB / 0.6876 GB, free: 8.668 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.2512, allocations: 49.14 kB / 0.6877 GB, free: 8.621 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007688/0.2519, allocations: 400 kB / 0.6881 GB, free: 8.191 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.2522, allocations: 0.7275 MB / 0.6888 GB, free: 7.438 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.207e-05/0.2523, allocations: 4 kB / 0.6888 GB, free: 7.434 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.615e-05/0.2524, allocations: 51.42 kB / 0.6888 GB, free: 7.383 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2524, allocations: 0 / 0.6888 GB, free: 7.383 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02113/0.2735, allocations: 3.926 MB / 0.6927 GB, free: 3.621 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.15, allocations: 20.59 kB / 0.6927 GB, free: 3.605 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_phiSor.fmu > BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.phiSor.pipe 2>&1)