Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain,fileNamePrefix="Buildings_latest_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.0008909/0.000891, allocations: 89.81 kB / 15.36 MB, free: 0.7383 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.005499/0.005499, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.288/1.288, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.595/2.595, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002774/0.0002774, allocations: 10.59 kB / 0.9029 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2577, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain): time 0.002929/0.2606, allocations: 1.853 MB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005797/0.2665, allocations: 3.72 MB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.2666, allocations: 3.938 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002815/0.2669, allocations: 47.73 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004474/0.2674, allocations: 127.2 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.2678, allocations: 119.8 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004471/0.2683, allocations: 294.9 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.2685, allocations: 52.7 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002769/0.2688, allocations: 123.4 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.269, allocations: 131.4 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.2691, allocations: 12 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.2694, allocations: 115.8 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.979e-05/0.2695, allocations: 51.75 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.2697, allocations: 129 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004745/0.2702, allocations: 318.8 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2702, allocations: 8 kB / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2702, allocations: 0 / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.2702, allocations: 0 / 1.066 GB, free: 13.75 MB / 0.8262 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.001486/0.2717, allocations: 0.6194 MB / 1.066 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2718, allocations: 11.97 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.609e-05/0.2718, allocations: 38.75 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008723/0.2727, allocations: 164.3 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006388/0.2733, allocations: 336.2 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.2734, allocations: 16.31 kB / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.2734, allocations: 8 kB / 1.067 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006438/0.274, allocations: 249.5 kB / 1.067 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.2741, allocations: 4 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.2741, allocations: 4 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.2741, allocations: 4 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009973/0.2751, allocations: 348.2 kB / 1.067 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.2763, allocations: 0.5979 MB / 1.068 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000547/0.2768, allocations: 190.5 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005144/0.2773, allocations: 192.7 kB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007651/0.2781, allocations: 0.5727 MB / 1.069 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.2781, allocations: 38.5 kB / 1.069 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.2782, allocations: 0 / 1.069 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.001691/0.2799, allocations: 0.5708 MB / 1.07 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.2799, allocations: 55.41 kB / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/0.2801, allocations: 260.5 kB / 1.07 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.2801, allocations: 33.7 kB / 1.07 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.927e-05/0.2802, allocations: 148 kB / 1.07 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.2803, allocations: 47.28 kB / 1.07 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.2803, allocations: 21.72 kB / 1.07 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.892e-05/0.2804, allocations: 338.8 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005267/0.281, allocations: 171.9 kB / 1.071 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000514/0.2815, allocations: 187.7 kB / 1.071 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.2825, allocations: 358 kB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2825, allocations: 0 / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.001142/0.2837, allocations: 427.2 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.2837, allocations: 4 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.2837, allocations: 0 / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.2837, allocations: 4 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.2841, allocations: 91.86 kB / 1.072 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.2841, allocations: 0 / 1.072 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003229/0.2845, allocations: 63.78 kB / 1.072 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.2845, allocations: 11.98 kB / 1.072 GB, free: 7.305 MB / 0.8262 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.0001095/0.2846, allocations: 127.3 kB / 1.072 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.99e-05/0.2847, allocations: 27.62 kB / 1.072 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.2859, allocations: 439.3 kB / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2859, allocations: 0 / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.2859, allocations: 0 / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.2859, allocations: 7.922 kB / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.2862, allocations: 293.5 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2862, allocations: 0 / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003744/0.2866, allocations: 79.92 kB / 1.073 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2866, allocations: 0 / 1.073 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.2866, allocations: 11.92 kB / 1.073 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2866, allocations: 0 / 1.073 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2866, allocations: 0 / 1.073 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.2878, allocations: 0.5066 MB / 1.073 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.297e-05/0.2879, allocations: 120.8 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.2879, allocations: 0 / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.2882, allocations: 55.95 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.2883, allocations: 19.91 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.2883, allocations: 7.984 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001397/0.2885, allocations: 187.1 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2885, allocations: 0 / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002991/0.2888, allocations: 63.94 kB / 1.074 GB, free: 5.285 MB / 0.8262 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.001426/0.2902, allocations: 1.074 MB / 1.075 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001089/0.2913, allocations: 383.7 kB / 1.075 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2913, allocations: 0 / 1.075 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005532/0.2919, allocations: 191.8 kB / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.2923, allocations: 46.58 kB / 1.075 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004715/0.297, allocations: 3.128 MB / 1.078 GB, free: 380 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.2972, allocations: 0.7477 MB / 1.079 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002206/0.2975, allocations: 45.39 kB / 1.079 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.2976, allocations: 79.39 kB / 1.079 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of SimCode: time 1.91e-07/0.2976, allocations: 0 / 1.079 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.71/2.008, allocations: 5.208 MB / 1.084 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002911/2.008, allocations: 225.5 kB / 1.084 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/3.704, allocations: 0 / 1.084 GB, free: 10.22 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe 2>&1)