Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain",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.001283/0.001283, allocations: 108 kB / 15.61 MB, free: 152 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.001333/0.001333, allocations: 196.6 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.1 MB / 222.4 MB, free: 4.629 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.792/1.792, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001439, allocations: 69.52 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2541, allocations: 114.6 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain): time 0.003772/0.258, allocations: 2.147 MB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004779/0.2628, allocations: 3.783 MB / 0.7893 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.2629, allocations: 4 kB / 0.7893 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002849/0.2632, allocations: 59.5 kB / 0.7893 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003612/0.2636, allocations: 119.2 kB / 0.7894 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.264, allocations: 159.5 kB / 0.7896 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.2643, allocations: 310.9 kB / 0.7899 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.2645, allocations: 56.69 kB / 0.7899 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.2647, allocations: 135.5 kB / 0.7901 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.2649, allocations: 143.4 kB / 0.7902 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.283e-05/0.2649, allocations: 20 kB / 0.7902 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002516/0.2652, allocations: 131.8 kB / 0.7904 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.052e-05/0.2653, allocations: 63.75 kB / 0.7904 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.2654, allocations: 115.3 kB / 0.7905 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004096/0.2658, allocations: 342.9 kB / 0.7909 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2659, allocations: 0 / 0.7909 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.078e-06/0.2659, allocations: 0 / 0.7909 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.704e-06/0.2659, allocations: 3.938 kB / 0.7909 GB, free: 5.77 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001299/0.2672, allocations: 0.6348 MB / 0.7915 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.2672, allocations: 8.031 kB / 0.7915 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.543e-05/0.2673, allocations: 50.67 kB / 0.7915 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/0.2683, allocations: 160.4 kB / 0.7917 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007411/0.2691, allocations: 328.3 kB / 0.792 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.2691, allocations: 12.31 kB / 0.792 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.2692, allocations: 8 kB / 0.792 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007023/0.2699, allocations: 233.3 kB / 0.7922 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.2699, allocations: 0 / 0.7922 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.2699, allocations: 4 kB / 0.7922 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.2699, allocations: 0 / 0.7922 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.271, allocations: 279.7 kB / 0.7925 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.2722, allocations: 0.5823 MB / 0.7931 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005676/0.2728, allocations: 170.4 kB / 0.7932 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005106/0.2733, allocations: 160.7 kB / 0.7934 GB, free: 3 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008638/0.2742, allocations: 0.5454 MB / 0.7939 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.2742, allocations: 34.56 kB / 0.794 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.2743, allocations: 3.938 kB / 0.794 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.00171/0.276, allocations: 493.1 kB / 0.7944 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.276, allocations: 51.41 kB / 0.7945 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.2763, allocations: 272.5 kB / 0.7947 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.2763, allocations: 29.7 kB / 0.7948 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.014e-05/0.2764, allocations: 144 kB / 0.7949 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.07e-05/0.2765, allocations: 51.28 kB / 0.795 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.743e-05/0.2766, allocations: 41.69 kB / 0.795 GB, free: 1.195 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.2767, allocations: 334.8 kB / 0.7953 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/0.2772, allocations: 147.9 kB / 0.7955 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000509/0.2778, allocations: 147.9 kB / 0.7956 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.2788, allocations: 287.6 kB / 0.7959 GB, free: 296 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.2788, allocations: 3.984 kB / 0.7959 GB, free: 292 kB / 0.6075 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.001203/0.28, allocations: 369 kB / 0.7962 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.28, allocations: 4 kB / 0.7962 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.28, allocations: 4 kB / 0.7962 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2801, allocations: 0 / 0.7962 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.2805, allocations: 71.92 kB / 0.7963 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.2806, allocations: 3.984 kB / 0.7963 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003323/0.2809, allocations: 55.66 kB / 0.7964 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.2809, allocations: 4 kB / 0.7964 GB, free: 15.78 MB / 0.6231 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 (17): * Single equations (assignments): 17 * 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.0001468/0.2811, allocations: 137.8 kB / 0.7965 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.181e-05/0.2812, allocations: 27.62 kB / 0.7965 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.2824, allocations: 370.7 kB / 0.7969 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.2824, allocations: 8 kB / 0.7969 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2824, allocations: 0 / 0.7969 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.2825, allocations: 7.922 kB / 0.7969 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003676/0.2828, allocations: 297.5 kB / 0.7972 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2828, allocations: 3.938 kB / 0.7972 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003983/0.2832, allocations: 55.92 kB / 0.7972 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.2833, allocations: 4 kB / 0.7972 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.2833, allocations: 7.984 kB / 0.7972 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2833, allocations: 4 kB / 0.7972 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2833, allocations: 0 / 0.7972 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.2845, allocations: 442.8 kB / 0.7977 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.2846, allocations: 128.7 kB / 0.7978 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.2847, allocations: 0 / 0.7978 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.285, allocations: 43.89 kB / 0.7978 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.468e-05/0.2851, allocations: 19.91 kB / 0.7979 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.2851, allocations: 7.984 kB / 0.7979 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001766/0.2853, allocations: 187.1 kB / 0.798 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2853, allocations: 0 / 0.798 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003442/0.2857, allocations: 71.94 kB / 0.7981 GB, free: 13.89 MB / 0.6231 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 (13): * Single equations (assignments): 13 * 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.001575/0.2873, allocations: 1.005 MB / 0.7991 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001216/0.2885, allocations: 327.7 kB / 0.7994 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.2885, allocations: 0 / 0.7994 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005408/0.289, allocations: 175.7 kB / 0.7996 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.2895, allocations: 35.39 kB / 0.7996 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005196/0.2947, allocations: 2.897 MB / 0.8024 GB, free: 9.367 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.2951, allocations: 0.7474 MB / 0.8032 GB, free: 8.594 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00027/0.2954, allocations: 49.38 kB / 0.8032 GB, free: 8.547 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/0.2956, allocations: 75.41 kB / 0.8033 GB, free: 8.473 MB / 0.6231 GB Notification: Performance of SimCode: time 6.41e-07/0.2956, allocations: 0 / 0.8033 GB, free: 8.473 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.3187, allocations: 5.741 MB / 0.8089 GB, free: 2.879 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/8.011, allocations: 22.42 kB / 0.8089 GB, free: 2.863 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe 2>&1)