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.001896/0.001896, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002597/0.002596, allocations: 195.8 kB / 16.14 MB, free: 6.719 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.232/1.232, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.493/2.493, allocations: 461.9 MB / 0.7342 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.5 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2526, allocations: 157.4 MB / 1.052 GB, free: 8.164 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain): time 0.00344/0.2561, allocations: 2.2 MB / 1.054 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004649/0.2607, allocations: 3.77 MB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.2609, allocations: 7.938 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002808/0.2612, allocations: 43.73 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003573/0.2616, allocations: 111.3 kB / 1.058 GB, free: 2 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.262, allocations: 123.7 kB / 1.058 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.2623, allocations: 306.8 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.2625, allocations: 56.7 kB / 1.059 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.2627, allocations: 123.5 kB / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.2629, allocations: 135.4 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.263, allocations: 16 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002619/0.2633, allocations: 123.8 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.124e-05/0.2633, allocations: 55.73 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.2635, allocations: 107.3 kB / 1.059 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.2638, allocations: 322.9 kB / 1.06 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2639, allocations: 0 / 1.06 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.41e-07/0.2639, allocations: 4 kB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.2639, allocations: 0 / 1.06 GB, free: 0.6484 MB / 0.8106 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.00126/0.2651, allocations: 0.6308 MB / 1.06 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.2652, allocations: 15.97 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.174e-05/0.2652, allocations: 38.73 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000964/0.2662, allocations: 180.4 kB / 1.06 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007043/0.2669, allocations: 320.2 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.267, allocations: 16.31 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.267, allocations: 8 kB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006826/0.2677, allocations: 222.2 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.2677, allocations: 4 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.2677, allocations: 4 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2678, allocations: 0 / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009786/0.2687, allocations: 289.1 kB / 1.061 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.2701, allocations: 0.5784 MB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005479/0.2706, allocations: 170.4 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.2711, allocations: 156.7 kB / 1.062 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00086/0.272, allocations: 0.5571 MB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.2721, allocations: 34.5 kB / 1.063 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.693e-06/0.2721, allocations: 0 / 1.063 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.001701/0.2738, allocations: 488.2 kB / 1.063 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.2738, allocations: 55.41 kB / 1.063 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.2741, allocations: 272.4 kB / 1.063 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.971e-05/0.2741, allocations: 29.7 kB / 1.063 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.392e-05/0.2742, allocations: 144 kB / 1.064 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.695e-05/0.2743, allocations: 43.39 kB / 1.064 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.229e-05/0.2744, allocations: 41.61 kB / 1.064 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.2745, allocations: 342.8 kB / 1.064 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005202/0.275, allocations: 139.9 kB / 1.064 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000504/0.2755, allocations: 153.2 kB / 1.064 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009883/0.2765, allocations: 290 kB / 1.065 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2766, allocations: 0 / 1.065 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.001123/0.2777, allocations: 371.1 kB / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.2777, allocations: 4 kB / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2777, allocations: 0 / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.2777, allocations: 4 kB / 1.065 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.2782, allocations: 71.84 kB / 1.065 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.2782, allocations: 0 / 1.065 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003218/0.2785, allocations: 47.8 kB / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.2786, allocations: 7.984 kB / 1.065 GB, free: 10.67 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.0001296/0.2787, allocations: 131.8 kB / 1.065 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.797e-05/0.2788, allocations: 23.72 kB / 1.065 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.28, allocations: 383.2 kB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.28, allocations: 8 kB / 1.066 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.28, allocations: 0 / 1.066 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.28, allocations: 3.938 kB / 1.066 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003318/0.2803, allocations: 301.4 kB / 1.066 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2803, allocations: 3.984 kB / 1.066 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004045/0.2807, allocations: 59.92 kB / 1.066 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.2808, allocations: 4 kB / 1.066 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.2808, allocations: 7.984 kB / 1.066 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2808, allocations: 0 / 1.066 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2808, allocations: 0 / 1.066 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.2819, allocations: 454.9 kB / 1.066 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.2821, allocations: 124.7 kB / 1.066 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.2821, allocations: 0 / 1.066 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.2825, allocations: 35.94 kB / 1.066 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.323e-05/0.2825, allocations: 19.92 kB / 1.067 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.2826, allocations: 7.984 kB / 1.067 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000167/0.2828, allocations: 191 kB / 1.067 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2828, allocations: 4 kB / 1.067 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003491/0.2831, allocations: 71.92 kB / 1.067 GB, free: 8.77 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.001498/0.2846, allocations: 1 MB / 1.068 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001093/0.2857, allocations: 331.6 kB / 1.068 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2857, allocations: 0 / 1.068 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005253/0.2863, allocations: 159.8 kB / 1.068 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004373/0.2867, allocations: 36.58 kB / 1.068 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005055/0.2918, allocations: 2.953 MB / 1.071 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.2921, allocations: 0.7438 MB / 1.072 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002612/0.2924, allocations: 45.39 kB / 1.072 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.2925, allocations: 79.39 kB / 1.072 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.2925, allocations: 0 / 1.072 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.3158, allocations: 5.296 MB / 1.077 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.3161, allocations: 230.1 kB / 1.077 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/2.087, allocations: 1 kB / 1.077 GB, free: 13.93 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)