Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",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.001043/0.001043, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001034/0.001034, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.978/1.978, allocations: 292.6 MB / 0.5497 GB, free: 14.61 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.0005629/0.0005629, allocations: 13.72 kB / 0.6737 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.287, allocations: 116.3 MB / 0.7872 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004197/0.2912, allocations: 2.568 MB / 0.7898 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003126/0.2944, allocations: 1.619 MB / 0.7913 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.2946, allocations: 11.94 kB / 0.7913 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.2948, allocations: 35.77 kB / 0.7914 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004432/0.2953, allocations: 131.5 kB / 0.7915 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006266/0.2959, allocations: 195.4 kB / 0.7917 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.2963, allocations: 219.6 kB / 0.7919 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007493/0.297, allocations: 378.8 kB / 0.7923 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.2972, allocations: 115.6 kB / 0.7924 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.2975, allocations: 131.5 kB / 0.7925 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.962e-05/0.2975, allocations: 12 kB / 0.7925 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002639/0.2978, allocations: 139.8 kB / 0.7926 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.816e-05/0.2979, allocations: 79.72 kB / 0.7927 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.615e-05/0.298, allocations: 69.58 kB / 0.7928 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003647/0.2984, allocations: 347 kB / 0.7931 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.2984, allocations: 0 / 0.7931 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2984, allocations: 0 / 0.7931 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.2984, allocations: 0 / 0.7931 GB, free: 5.809 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001116/0.2995, allocations: 0.5979 MB / 0.7937 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.2996, allocations: 8.031 kB / 0.7937 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.263e-05/0.2996, allocations: 54.55 kB / 0.7938 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007331/0.3004, allocations: 115.5 kB / 0.7939 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.3008, allocations: 274.3 kB / 0.7941 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.3008, allocations: 12.44 kB / 0.7941 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.408e-05/0.3009, allocations: 31.91 kB / 0.7942 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007704/0.3016, allocations: 422.5 kB / 0.7946 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.3017, allocations: 0 / 0.7946 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.3017, allocations: 11.97 kB / 0.7946 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.184e-05/0.3018, allocations: 28.36 kB / 0.7946 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008726/0.3027, allocations: 420.5 kB / 0.795 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.3046, allocations: 1.615 MB / 0.7966 GB, free: 1.984 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.3057, allocations: 489.2 kB / 0.7971 GB, free: 1.488 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.3059, allocations: 89.11 kB / 0.7971 GB, free: 1.383 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005492/0.3064, allocations: 286.4 kB / 0.7974 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=27): time 1.903e-06/0.3064, allocations: 0 / 0.7974 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.001965/0.3084, allocations: 0.778 MB / 0.7982 GB, free: 288 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.3085, allocations: 81.11 kB / 0.7983 GB, free: 188 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002344/0.3087, allocations: 221 kB / 0.7985 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/0.3088, allocations: 37.7 kB / 0.7985 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 9.939e-05/0.3089, allocations: 164.3 kB / 0.7987 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 8.028e-05/0.3089, allocations: 98.64 kB / 0.7987 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2e-05/0.309, allocations: 4 kB / 0.7988 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3091, allocations: 338.8 kB / 0.7991 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003968/0.3095, allocations: 184.2 kB / 0.7993 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.3099, allocations: 257.3 kB / 0.7995 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004478/0.3104, allocations: 233.8 kB / 0.7997 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3104, allocations: 0 / 0.7997 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001122/0.3115, allocations: 0.5642 MB / 0.8003 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004072/0.312, allocations: 0.8982 MB / 0.8011 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.312, allocations: 4 kB / 0.8012 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002465/0.3122, allocations: 48.75 kB / 0.8012 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003983/0.3126, allocations: 91.86 kB / 0.8013 GB, free: 12.92 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.314, allocations: 1.505 MB / 0.8028 GB, free: 11.28 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.3144, allocations: 55.8 kB / 0.8028 GB, free: 11.22 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.3144, allocations: 8 kB / 0.8028 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.3145, allocations: 12.02 kB / 0.8028 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001051/0.3155, allocations: 0.4904 MB / 0.8033 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.3155, allocations: 0 / 0.8033 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001322/0.3157, allocations: 48.97 kB / 0.8034 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003492/0.316, allocations: 87.88 kB / 0.8034 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.3172, allocations: 1.493 MB / 0.8049 GB, free: 8.934 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.3175, allocations: 51.84 kB / 0.8049 GB, free: 8.883 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.3176, allocations: 11.98 kB / 0.805 GB, free: 8.871 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002369/0.3178, allocations: 253 kB / 0.8052 GB, free: 8.613 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.265e-05/0.3179, allocations: 23.72 kB / 0.8052 GB, free: 8.59 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.3189, allocations: 496.6 kB / 0.8057 GB, free: 8.098 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3189, allocations: 4 kB / 0.8057 GB, free: 8.094 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3189, allocations: 0 / 0.8057 GB, free: 8.094 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.319, allocations: 7.938 kB / 0.8057 GB, free: 8.086 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000706/0.3197, allocations: 0.5699 MB / 0.8063 GB, free: 7.453 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3197, allocations: 0 / 0.8063 GB, free: 7.453 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.3201, allocations: 87.95 kB / 0.8063 GB, free: 7.367 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001107/0.3202, allocations: 32.83 kB / 0.8064 GB, free: 7.332 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.3202, allocations: 11.98 kB / 0.8064 GB, free: 7.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.3214, allocations: 1.417 MB / 0.8078 GB, free: 5.77 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3214, allocations: 3.984 kB / 0.8078 GB, free: 5.766 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.3224, allocations: 0.59 MB / 0.8084 GB, free: 5.129 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.3226, allocations: 132.7 kB / 0.8085 GB, free: 4.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.3226, allocations: 8.281 kB / 0.8085 GB, free: 4.973 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003173/0.323, allocations: 43.95 kB / 0.8085 GB, free: 4.93 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.959e-05/0.3231, allocations: 35.84 kB / 0.8086 GB, free: 4.895 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.3231, allocations: 15.98 kB / 0.8086 GB, free: 4.879 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001764/0.3233, allocations: 168.5 kB / 0.8087 GB, free: 4.711 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3233, allocations: 0 / 0.8087 GB, free: 4.711 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006833/0.324, allocations: 132 kB / 0.8089 GB, free: 4.582 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00155/0.3255, allocations: 1.36 MB / 0.8102 GB, free: 3.168 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001916/0.3275, allocations: 1.013 MB / 0.8112 GB, free: 2.105 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.3275, allocations: 0 / 0.8112 GB, free: 2.105 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006114/0.3281, allocations: 343.3 kB / 0.8115 GB, free: 1.758 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.3285, allocations: 40.41 kB / 0.8115 GB, free: 1.719 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003928/0.3324, allocations: 3.34 MB / 0.8148 GB, free: 14.28 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.3328, allocations: 0.7918 MB / 0.8156 GB, free: 13.46 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003231/0.3331, allocations: 98.2 kB / 0.8157 GB, free: 13.36 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.3333, allocations: 83.41 kB / 0.8158 GB, free: 13.28 MB / 0.6387 GB Notification: Performance of SimCode: time 7.51e-07/0.3333, allocations: 0 / 0.8158 GB, free: 13.28 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.3552, allocations: 6.55 MB / 0.8222 GB, free: 6.965 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.3555, allocations: 218.5 kB / 0.8224 GB, free: 6.727 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.336, allocations: 0 / 0.8224 GB, free: 6.727 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) Environment - environmentSimulation: