Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975SolarGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975SolarGain",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.001463/0.001463, allocations: 108 kB / 15.6 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.001653/0.001652, allocations: 196.8 kB / 16.53 MB, free: 6.672 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.262/1.262, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.187/2.187, allocations: 390.2 MB / 0.6647 GB, free: 284 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 63.91 kB / 0.8126 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5223/0.5238, allocations: 140.4 MB / 0.9497 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain): time 0.002522/0.5263, allocations: 2.011 MB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003153/0.5295, allocations: 3.692 MB / 0.9553 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.003e-05/0.5296, allocations: 5.188 kB / 0.9553 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.5298, allocations: 65.7 kB / 0.9554 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002445/0.5301, allocations: 108.5 kB / 0.9555 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.5304, allocations: 125.3 kB / 0.9556 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.5306, allocations: 255.7 kB / 0.9558 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.5307, allocations: 50.86 kB / 0.9559 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.5309, allocations: 104.1 kB / 0.956 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.531, allocations: 112.1 kB / 0.9561 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.5311, allocations: 16.62 kB / 0.9561 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001801/0.5313, allocations: 127.6 kB / 0.9562 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.663e-05/0.5313, allocations: 43.83 kB / 0.9563 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.33e-05/0.5314, allocations: 101.1 kB / 0.9563 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.5316, allocations: 269 kB / 0.9566 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.5317, allocations: 4 kB / 0.9566 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.5317, allocations: 0 / 0.9566 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.5317, allocations: 0 / 0.9566 GB, free: 3.59 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0009502/0.5326, allocations: 0.5827 MB / 0.9572 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.5327, allocations: 10.81 kB / 0.9572 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.3e-05/0.5327, allocations: 41.36 kB / 0.9572 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.779e-05/0.5328, allocations: 23.09 kB / 0.9572 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003336/0.5331, allocations: 274.2 kB / 0.9575 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.5331, allocations: 3.562 kB / 0.9575 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.5332, allocations: 14.19 kB / 0.9575 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004575/0.5336, allocations: 171.2 kB / 0.9577 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.5336, allocations: 5.188 kB / 0.9577 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.5337, allocations: 4 kB / 0.9577 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.5337, allocations: 2.531 kB / 0.9577 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000653/0.5343, allocations: 194.3 kB / 0.9579 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007049/0.535, allocations: 493.4 kB / 0.9584 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/0.5354, allocations: 125.4 kB / 0.9585 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003402/0.5358, allocations: 109.3 kB / 0.9586 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007233/0.5365, allocations: 0.5515 MB / 0.9591 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.525e-05/0.5365, allocations: 31.94 kB / 0.9592 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 8.986e-06/0.5365, allocations: 1.375 kB / 0.9592 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001141/0.5377, allocations: 356.6 kB / 0.9595 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.894e-05/0.5377, allocations: 60.5 kB / 0.9596 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.5379, allocations: 235 kB / 0.9598 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.5379, allocations: 26.7 kB / 0.9598 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.3e-05/0.538, allocations: 142 kB / 0.9599 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.345e-05/0.538, allocations: 36.52 kB / 0.96 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.914e-05/0.5381, allocations: 29.92 kB / 0.96 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.541e-05/0.5381, allocations: 332.1 kB / 0.9603 GB, free: 352 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.5385, allocations: 99.31 kB / 0.9604 GB, free: 304 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.5388, allocations: 92.12 kB / 0.9605 GB, free: 264 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006426/0.5395, allocations: 197.2 kB / 0.9607 GB, free: 168 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5395, allocations: 5.031 kB / 0.9607 GB, free: 164 kB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0007291/0.5402, allocations: 260.2 kB / 0.9609 GB, free: 20 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.5402, allocations: 5.781 kB / 0.9609 GB, free: 20 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.5402, allocations: 3.938 kB / 0.9609 GB, free: 16 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.5403, allocations: 1 kB / 0.9609 GB, free: 16 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.5406, allocations: 45.5 kB / 0.961 GB, free: 0 / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.5406, allocations: 7.984 kB / 0.961 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/0.5409, allocations: 23.66 kB / 0.961 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.5409, allocations: 11.36 kB / 0.961 GB, free: 15.97 MB / 0.7325 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 (11): * Single equations (assignments): 11 * 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.0001142/0.541, allocations: 121.8 kB / 0.9612 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-05/0.5411, allocations: 21.41 kB / 0.9612 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008825/0.5419, allocations: 287.3 kB / 0.9614 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.542, allocations: 1.5 kB / 0.9614 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.542, allocations: 11.94 kB / 0.9615 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.542, allocations: 0.7188 kB / 0.9615 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/0.5423, allocations: 274.3 kB / 0.9617 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.5423, allocations: 0 / 0.9617 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.5426, allocations: 45.28 kB / 0.9618 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5426, allocations: 0 / 0.9618 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.5426, allocations: 10.2 kB / 0.9618 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5426, allocations: 3.938 kB / 0.9618 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5426, allocations: 5.312 kB / 0.9618 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008188/0.5435, allocations: 352 kB / 0.9621 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.5436, allocations: 118.1 kB / 0.9622 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.5436, allocations: 0 / 0.9622 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.5439, allocations: 27.31 kB / 0.9623 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.624e-05/0.5439, allocations: 20.16 kB / 0.9623 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.544, allocations: 2.875 kB / 0.9623 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001317/0.5441, allocations: 172.5 kB / 0.9624 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5441, allocations: 0 / 0.9624 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003157/0.5444, allocations: 60.22 kB / 0.9625 GB, free: 14.83 MB / 0.7325 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 (11): * Single equations (assignments): 11 * 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.001231/0.5457, allocations: 0.9182 MB / 0.9634 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007776/0.5465, allocations: 230.7 kB / 0.9636 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.5465, allocations: 0 / 0.9636 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003569/0.5468, allocations: 109.4 kB / 0.9637 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.5473, allocations: 37.61 kB / 0.9638 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.5511, allocations: 2.451 MB / 0.9661 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.5515, allocations: 0.7386 MB / 0.9669 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001832/0.5517, allocations: 38.38 kB / 0.9669 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.5518, allocations: 72.02 kB / 0.967 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.5518, allocations: 0 / 0.967 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5956/1.147, allocations: 4.917 MB / 0.9718 GB, free: 8.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/12.13, allocations: 8.984 kB / 0.9718 GB, free: 8.766 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975SolarGain_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975SolarGain.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe 2>&1)