Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.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.EN12975HeatLoss,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",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.001318/0.001318, 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.001452/0.001451, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.617/1.617, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.731/1.731, allocations: 292.3 MB / 0.5489 GB, free: 12.86 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.001452/0.001452, allocations: 68.03 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2582, allocations: 114.6 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.003923/0.2622, allocations: 1.909 MB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003921/0.2662, allocations: 3.446 MB / 0.7887 GB, free: 8 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2664, allocations: 7.938 kB / 0.7887 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003118/0.2667, allocations: 51.67 kB / 0.7888 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004876/0.2672, allocations: 135.2 kB / 0.7889 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 7.911e-05/0.2673, allocations: 19.97 kB / 0.7889 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002265/0.2675, allocations: 175.2 kB / 0.7891 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.2677, allocations: 29.67 kB / 0.7891 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.2678, allocations: 91.62 kB / 0.7892 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.268, allocations: 83.56 kB / 0.7893 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.2681, allocations: 8 kB / 0.7893 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.2682, allocations: 31.97 kB / 0.7893 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.57e-05/0.2682, allocations: 39.84 kB / 0.7894 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.891e-05/0.2683, allocations: 79.47 kB / 0.7894 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.2686, allocations: 167.4 kB / 0.7896 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2686, allocations: 0 / 0.7896 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2686, allocations: 0 / 0.7896 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.2686, allocations: 0 / 0.7896 GB, free: 7.098 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008808/0.2695, allocations: 0.5177 MB / 0.7901 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.2695, allocations: 8.031 kB / 0.7901 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.841e-05/0.2696, allocations: 38.75 kB / 0.7901 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.461e-05/0.2696, allocations: 16.75 kB / 0.7902 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.27, allocations: 246.8 kB / 0.7904 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.27, allocations: 4.375 kB / 0.7904 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.2701, allocations: 8.359 kB / 0.7904 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000357/0.2704, allocations: 148.2 kB / 0.7905 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2704, allocations: 0 / 0.7905 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.2705, allocations: 0 / 0.7905 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.667e-05/0.2705, allocations: 11.98 kB / 0.7906 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004371/0.2709, allocations: 143.8 kB / 0.7907 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000687/0.2716, allocations: 464.4 kB / 0.7911 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.2721, allocations: 174.5 kB / 0.7913 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.2723, allocations: 104.8 kB / 0.7914 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.2724, allocations: 0 / 0.7914 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.2724, allocations: 30.56 kB / 0.7914 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.142e-06/0.2724, allocations: 0 / 0.7914 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0008418/0.2732, allocations: 297.7 kB / 0.7917 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.2733, allocations: 51.41 kB / 0.7918 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.2735, allocations: 213 kB / 0.792 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.2735, allocations: 33.7 kB / 0.792 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.847e-05/0.2736, allocations: 124 kB / 0.7921 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.663e-05/0.2737, allocations: 43.45 kB / 0.7922 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.879e-05/0.2737, allocations: 29.64 kB / 0.7922 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.2739, allocations: 330.8 kB / 0.7925 GB, free: 3.891 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.2741, allocations: 71.94 kB / 0.7926 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.2743, allocations: 80.8 kB / 0.7926 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004626/0.2748, allocations: 164.1 kB / 0.7928 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2748, allocations: 3.938 kB / 0.7928 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005334/0.2753, allocations: 225.3 kB / 0.793 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.2754, allocations: 4 kB / 0.793 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2754, allocations: 4 kB / 0.793 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.2754, allocations: 0 / 0.793 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.2756, allocations: 35.95 kB / 0.7931 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.2757, allocations: 4 kB / 0.7931 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.2758, allocations: 19.92 kB / 0.7931 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.2759, allocations: 7.938 kB / 0.7931 GB, free: 3.277 MB / 0.6075 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 (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 prepare postOptimizeDAE: time 0.000114/0.276, allocations: 130.4 kB / 0.7932 GB, free: 3.141 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.544e-05/0.276, allocations: 19.72 kB / 0.7932 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.372e-05/0.2761, allocations: 25.83 kB / 0.7933 GB, free: 3.094 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2761, allocations: 4 kB / 0.7933 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2761, allocations: 3.938 kB / 0.7933 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2761, allocations: 4 kB / 0.7933 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002846/0.2764, allocations: 265.5 kB / 0.7935 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2764, allocations: 0 / 0.7935 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.2767, allocations: 35.95 kB / 0.7936 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2767, allocations: 0 / 0.7936 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.2767, allocations: 8 kB / 0.7936 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2767, allocations: 0 / 0.7936 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2767, allocations: 0 / 0.7936 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005807/0.2773, allocations: 323 kB / 0.7939 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.783e-05/0.2774, allocations: 104.8 kB / 0.794 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.2774, allocations: 8 kB / 0.794 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.2776, allocations: 15.97 kB / 0.794 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/0.2777, allocations: 15.98 kB / 0.794 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.2777, allocations: 8 kB / 0.794 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001286/0.2778, allocations: 160.4 kB / 0.7942 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2779, allocations: 0 / 0.7942 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002797/0.2781, allocations: 40 kB / 0.7942 GB, free: 2.035 MB / 0.6075 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.0009185/0.2791, allocations: 0.8565 MB / 0.795 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005443/0.2796, allocations: 206.9 kB / 0.7952 GB, free: 0.9531 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2796, allocations: 0 / 0.7952 GB, free: 0.9531 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002621/0.2799, allocations: 91.86 kB / 0.7953 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.2803, allocations: 32.41 kB / 0.7954 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.2835, allocations: 2.303 MB / 0.7976 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.2838, allocations: 0.7314 MB / 0.7983 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001712/0.284, allocations: 52.58 kB / 0.7984 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.386e-05/0.2841, allocations: 47.42 kB / 0.7984 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of SimCode: time 2.31e-07/0.2841, allocations: 0 / 0.7984 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01876/0.3029, allocations: 3.866 MB / 0.8022 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/7.989, allocations: 13.84 kB / 0.8022 GB, free: 9.867 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe 2>&1)