Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.501/1.501, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 175.5 kB / 326.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.874/1.874, allocations: 205.4 MB / 0.5775 GB, free: 20.48 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008307/0.0008306, allocations: 86.36 kB / 0.6821 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.0003729, allocations: 10.97 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2233, allocations: 106.3 MB / 0.9002 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2668/0.4901, allocations: 153.7 MB / 1.05 GB, free: 6.262 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004381/0.4906, allocations: 99.94 kB / 1.05 GB, free: 6.164 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.5586/1.049, allocations: 17.11 MB / 1.067 GB, free: 151.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.615e-06/1.049, allocations: 0 / 1.067 GB, free: 151.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.63e-05/1.049, allocations: 6.891 kB / 1.067 GB, free: 151.2 MB / 0.698 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.001715/1.051, allocations: 0.6365 MB / 1.068 GB, free: 150.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 7.645e-05/1.051, allocations: 13.56 kB / 1.068 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002061/1.051, allocations: 59.44 kB / 1.068 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001235/1.053, allocations: 105.1 kB / 1.068 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007658/1.053, allocations: 282.4 kB / 1.068 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/1.053, allocations: 12.81 kB / 1.068 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/1.054, allocations: 22.95 kB / 1.068 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/1.055, allocations: 420.4 kB / 1.069 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/1.055, allocations: 0.6875 kB / 1.069 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/1.055, allocations: 8.016 kB / 1.069 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.229e-05/1.055, allocations: 23.97 kB / 1.069 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/1.056, allocations: 417.8 kB / 1.069 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002386/1.059, allocations: 1.662 MB / 1.071 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/1.06, allocations: 487.1 kB / 1.071 GB, free: 149.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001652/1.06, allocations: 85.91 kB / 1.071 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006187/1.061, allocations: 281.7 kB / 1.071 GB, free: 149 MB / 0.698 GB Notification: Performance of pre-optimization done (n=27): time 2.986e-06/1.061, allocations: 0 / 1.071 GB, free: 149 MB / 0.698 GB Notification: Performance of matching and sorting (n=28): time 0.002095/1.063, allocations: 0.7788 MB / 1.072 GB, free: 148.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/1.063, allocations: 84.12 kB / 1.072 GB, free: 148.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/1.063, allocations: 194.3 kB / 1.072 GB, free: 148.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/1.063, allocations: 32.08 kB / 1.073 GB, free: 148.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000128/1.063, allocations: 170.2 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000144/1.064, allocations: 90.61 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-05/1.064, allocations: 5.406 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001247/1.064, allocations: 336.2 kB / 1.073 GB, free: 148 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004792/1.064, allocations: 182.9 kB / 1.073 GB, free: 148 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004903/1.065, allocations: 257.2 kB / 1.073 GB, free: 148 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004929/1.065, allocations: 231.1 kB / 1.074 GB, free: 147.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/1.065, allocations: 3.953 kB / 1.074 GB, free: 147.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001185/1.066, allocations: 0.5658 MB / 1.074 GB, free: 147.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002442/1.067, allocations: 0.9028 MB / 1.075 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/1.067, allocations: 5.766 kB / 1.075 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/1.067, allocations: 42.33 kB / 1.075 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004299/1.067, allocations: 93.39 kB / 1.075 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/1.069, allocations: 1.509 MB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004109/1.069, allocations: 56.86 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.481e-05/1.069, allocations: 14.75 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/1.069, allocations: 3.031 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001063/1.07, allocations: 0.4991 MB / 1.077 GB, free: 145.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/1.07, allocations: 1.594 kB / 1.077 GB, free: 145.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001374/1.07, allocations: 49 kB / 1.077 GB, free: 145.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003666/1.071, allocations: 86.83 kB / 1.077 GB, free: 145.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/1.072, allocations: 1.497 MB / 1.079 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/1.072, allocations: 48.59 kB / 1.079 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/1.072, allocations: 14.62 kB / 1.079 GB, free: 144.1 MB / 0.698 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.0002786/1.073, allocations: 244.6 kB / 1.079 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.589e-05/1.073, allocations: 22.91 kB / 1.079 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/1.074, allocations: 494.1 kB / 1.08 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/1.074, allocations: 2.469 kB / 1.08 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/1.074, allocations: 6.172 kB / 1.08 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/1.074, allocations: 3.891 kB / 1.08 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007734/1.075, allocations: 0.5652 MB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/1.075, allocations: 1.219 kB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/1.075, allocations: 81.72 kB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/1.075, allocations: 37.88 kB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/1.075, allocations: 10.44 kB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009918/1.076, allocations: 1.423 MB / 1.082 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.076, allocations: 5.047 kB / 1.082 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/1.077, allocations: 0.5981 MB / 1.082 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/1.078, allocations: 133.2 kB / 1.082 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.323e-05/1.078, allocations: 7.438 kB / 1.083 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003384/1.078, allocations: 39.19 kB / 1.083 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/1.078, allocations: 34.14 kB / 1.083 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/1.078, allocations: 14.05 kB / 1.083 GB, free: 141.8 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001779/1.078, allocations: 177.1 kB / 1.083 GB, free: 141.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.5e-07/1.078, allocations: 0 / 1.083 GB, free: 141.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007807/1.079, allocations: 148.5 kB / 1.083 GB, free: 141.8 MB / 0.698 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.001519/1.081, allocations: 1.374 MB / 1.084 GB, free: 140.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001995/1.083, allocations: 1.014 MB / 1.085 GB, free: 140.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/1.083, allocations: 0 / 1.085 GB, free: 140.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006149/1.083, allocations: 338.2 kB / 1.086 GB, free: 140.3 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/1.084, allocations: 41.17 kB / 1.086 GB, free: 140.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00432/1.088, allocations: 3.341 MB / 1.089 GB, free: 138.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/1.088, allocations: 0.7952 MB / 1.09 GB, free: 137.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003524/1.089, allocations: 93.45 kB / 1.09 GB, free: 137.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/1.089, allocations: 87.64 kB / 1.09 GB, free: 137.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.272e-06/1.089, allocations: 4 kB / 1.09 GB, free: 137.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/1.112, allocations: 6.569 MB / 1.096 GB, free: 134.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/1.112, allocations: 232.5 kB / 1.096 GB, free: 134.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.09/3.202, allocations: 1.719 kB / 1.096 GB, free: 134.2 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)