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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.007369/0.007369, allocations: 98.56 kB / 15.73 MB, free: 6.008 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.002157/0.002157, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.198/1.198, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.354/2.354, allocations: 482.6 MB / 0.7551 GB, free: 6.648 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 67.97 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2446, allocations: 162.3 MB / 1.242 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain): time 0.002781/0.2475, allocations: 2.174 MB / 1.244 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004221/0.2517, allocations: 4.081 MB / 1.248 GB, free: 2.676 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.073e-05/0.2518, allocations: 4 kB / 1.248 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005968/0.2524, allocations: 190.4 kB / 1.248 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.2525, allocations: 75.34 kB / 1.248 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005433/0.2531, allocations: 291.2 kB / 1.248 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005275/0.2536, allocations: 434.7 kB / 1.249 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.2537, allocations: 52.72 kB / 1.249 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.2539, allocations: 131.5 kB / 1.249 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.2541, allocations: 159.3 kB / 1.249 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.2541, allocations: 20 kB / 1.249 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004458/0.2546, allocations: 323.5 kB / 1.25 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.2547, allocations: 115.6 kB / 1.25 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.2548, allocations: 167 kB / 1.25 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005804/0.2554, allocations: 0.5798 MB / 1.25 GB, free: 172 kB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.2554, allocations: 0 / 1.25 GB, free: 172 kB / 0.9669 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2554, allocations: 0 / 1.25 GB, free: 172 kB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.2554, allocations: 0 / 1.25 GB, free: 172 kB / 0.9669 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.001258/0.2567, allocations: 0.8107 MB / 1.251 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.2567, allocations: 12.02 kB / 1.251 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.37e-05/0.2568, allocations: 42.75 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008512/0.2576, allocations: 184.5 kB / 1.251 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006894/0.2583, allocations: 382.6 kB / 1.252 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.2584, allocations: 12.31 kB / 1.252 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.2584, allocations: 12 kB / 1.252 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006411/0.259, allocations: 253.4 kB / 1.252 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.2591, allocations: 0 / 1.252 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.2591, allocations: 4 kB / 1.252 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2591, allocations: 4 kB / 1.252 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009699/0.2601, allocations: 343.6 kB / 1.252 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2613, allocations: 0.68 MB / 1.253 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005611/0.2619, allocations: 218.4 kB / 1.253 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.2624, allocations: 180.7 kB / 1.253 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.2624, allocations: 12 kB / 1.253 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.2625, allocations: 42.56 kB / 1.253 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 1.051e-06/0.2625, allocations: 0 / 1.253 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.001659/0.2641, allocations: 0.5675 MB / 1.254 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.2642, allocations: 51.41 kB / 1.254 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.2646, allocations: 433.9 kB / 1.254 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.2646, allocations: 29.7 kB / 1.255 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.2648, allocations: 192.5 kB / 1.255 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.2648, allocations: 47.56 kB / 1.255 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.876e-05/0.2649, allocations: 57.67 kB / 1.255 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.265, allocations: 354.7 kB / 1.255 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/0.2657, allocations: 288 kB / 1.255 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005984/0.2663, allocations: 301.4 kB / 1.256 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.2674, allocations: 0.5072 MB / 1.256 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2674, allocations: 0 / 1.256 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001356/0.2688, allocations: 0.7177 MB / 1.257 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.2688, allocations: 49.69 kB / 1.257 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.2688, allocations: 0 / 1.257 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/0.2688, allocations: 0 / 1.257 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003919/0.2692, allocations: 63.92 kB / 1.257 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.2692, allocations: 0 / 1.257 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.2696, allocations: 67.66 kB / 1.257 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.2696, allocations: 8 kB / 1.257 GB, free: 9.062 MB / 0.9825 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.0001436/0.2697, allocations: 158.3 kB / 1.257 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.968e-05/0.2698, allocations: 35.77 kB / 1.257 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.271, allocations: 444.3 kB / 1.258 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.271, allocations: 7.938 kB / 1.258 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.271, allocations: 0 / 1.258 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.271, allocations: 3.938 kB / 1.258 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003536/0.2714, allocations: 373.3 kB / 1.258 GB, free: 8 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2714, allocations: 4 kB / 1.258 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.2717, allocations: 59.91 kB / 1.258 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.2717, allocations: 8 kB / 1.258 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.2718, allocations: 4 kB / 1.258 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2718, allocations: 0 / 1.258 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2718, allocations: 0 / 1.258 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.2729, allocations: 0.5029 MB / 1.259 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.273, allocations: 136.8 kB / 1.259 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.376e-05/0.2731, allocations: 8 kB / 1.259 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.2734, allocations: 35.94 kB / 1.259 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.2734, allocations: 19.92 kB / 1.259 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.2735, allocations: 7.984 kB / 1.259 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002748/0.2737, allocations: 303.1 kB / 1.259 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2738, allocations: 0 / 1.259 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003569/0.2741, allocations: 131.8 kB / 1.259 GB, free: 6.758 MB / 0.9825 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.001572/0.2757, allocations: 1.118 MB / 1.26 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001323/0.277, allocations: 0.6647 MB / 1.261 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.277, allocations: 4 kB / 1.261 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005273/0.2776, allocations: 195.8 kB / 1.261 GB, free: 4.738 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.278, allocations: 72.39 kB / 1.261 GB, free: 4.668 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00677/0.2847, allocations: 5.213 MB / 1.266 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.2851, allocations: 0.7983 MB / 1.267 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002051/0.2853, allocations: 61.89 kB / 1.267 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.2855, allocations: 115.4 kB / 1.267 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of SimCode: time 2e-07/0.2855, allocations: 0 / 1.267 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.079/8.365, allocations: 9.105 MB / 1.276 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.444/17.81, allocations: 18.98 kB / 1.276 GB, free: 5.457 MB / 0.9981 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=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe 2>&1)