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.517/1.517, allocations: 249.3 MB / 261.8 MB, free: 5.855 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 180.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.2 MB / 0.572 GB, free: 10.71 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.0008843/0.0008847, allocations: 86.47 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.355e-05/3.366e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2246, allocations: 106.3 MB / 0.8919 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7709/0.9956, allocations: 153.6 MB / 1.042 GB, free: 14.61 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003503/0.996, allocations: 93.22 kB / 1.042 GB, free: 14.56 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.04493/1.041, allocations: 17 MB / 1.059 GB, free: 292 kB / 0.6667 GB Notification: Performance of FrontEnd: time 2.374e-06/1.041, allocations: 0 / 1.059 GB, free: 292 kB / 0.6667 GB Notification: Performance of Transformations before backend: time 2.579e-05/1.041, allocations: 8 kB / 1.059 GB, free: 284 kB / 0.6667 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.001198/1.042, allocations: 0.6135 MB / 1.059 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/1.042, allocations: 8.031 kB / 1.059 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.128e-05/1.042, allocations: 55.67 kB / 1.059 GB, free: 15.57 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008241/1.043, allocations: 95.61 kB / 1.059 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/1.044, allocations: 282.6 kB / 1.06 GB, free: 15.19 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/1.044, allocations: 20.36 kB / 1.06 GB, free: 15.17 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.223e-05/1.044, allocations: 19.5 kB / 1.06 GB, free: 15.16 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006276/1.044, allocations: 374.6 kB / 1.06 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/1.044, allocations: 3.938 kB / 1.06 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/1.044, allocations: 11.38 kB / 1.06 GB, free: 14.85 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.341e-05/1.045, allocations: 20.36 kB / 1.06 GB, free: 14.83 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005307/1.045, allocations: 316.3 kB / 1.06 GB, free: 14.62 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/1.047, allocations: 1.664 MB / 1.062 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008002/1.048, allocations: 400.3 kB / 1.062 GB, free: 12.73 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/1.048, allocations: 157.6 kB / 1.063 GB, free: 12.62 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001786/1.048, allocations: 93.08 kB / 1.063 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003668/1.049, allocations: 232.7 kB / 1.063 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=27): time 2.805e-06/1.049, allocations: 3.938 kB / 1.063 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.0009324/1.05, allocations: 432.5 kB / 1.063 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/1.05, allocations: 81.11 kB / 1.063 GB, free: 11.87 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/1.05, allocations: 196.2 kB / 1.064 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/1.05, allocations: 32.27 kB / 1.064 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.597e-05/1.05, allocations: 171.3 kB / 1.064 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.552e-05/1.05, allocations: 95.83 kB / 1.064 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/1.05, allocations: 6.125 kB / 1.064 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001244/1.05, allocations: 332.2 kB / 1.064 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/1.051, allocations: 129.9 kB / 1.064 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/1.051, allocations: 208.4 kB / 1.064 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/1.051, allocations: 186.7 kB / 1.065 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/1.051, allocations: 0 / 1.065 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007661/1.052, allocations: 475 kB / 1.065 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003991/1.052, allocations: 0.9043 MB / 1.066 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/1.052, allocations: 4 kB / 1.066 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002216/1.053, allocations: 38.52 kB / 1.066 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/1.053, allocations: 95.3 kB / 1.066 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/1.054, allocations: 1.495 MB / 1.068 GB, free: 7.723 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/1.055, allocations: 55.53 kB / 1.068 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/1.055, allocations: 15.75 kB / 1.068 GB, free: 7.66 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/1.055, allocations: 7.938 kB / 1.068 GB, free: 7.652 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000708/1.056, allocations: 409.5 kB / 1.068 GB, free: 7.348 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/1.056, allocations: 4 kB / 1.068 GB, free: 7.344 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/1.056, allocations: 43.81 kB / 1.068 GB, free: 7.305 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/1.056, allocations: 84.16 kB / 1.068 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/1.057, allocations: 1.479 MB / 1.07 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/1.058, allocations: 55.33 kB / 1.07 GB, free: 5.652 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.831e-05/1.058, allocations: 11.31 kB / 1.07 GB, free: 5.645 MB / 0.6823 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 () * 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.0001388/1.058, allocations: 134.8 kB / 1.07 GB, free: 5.516 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/1.058, allocations: 27.66 kB / 1.07 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000715/1.059, allocations: 397.5 kB / 1.07 GB, free: 5.191 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/1.059, allocations: 7.984 kB / 1.07 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/1.059, allocations: 0 / 1.07 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/1.059, allocations: 3.984 kB / 1.07 GB, free: 5.18 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006955/1.059, allocations: 0.5715 MB / 1.071 GB, free: 4.637 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/1.059, allocations: 0 / 1.071 GB, free: 4.637 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003876/1.06, allocations: 83.67 kB / 1.071 GB, free: 4.559 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001261/1.06, allocations: 32.45 kB / 1.071 GB, free: 4.527 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.756e-05/1.06, allocations: 6.938 kB / 1.071 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/1.061, allocations: 1.41 MB / 1.072 GB, free: 3.066 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.061, allocations: 3.953 kB / 1.072 GB, free: 3.062 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006456/1.062, allocations: 0.4992 MB / 1.073 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/1.062, allocations: 137.4 kB / 1.073 GB, free: 2.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/1.062, allocations: 7.312 kB / 1.073 GB, free: 2.461 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003145/1.062, allocations: 46.06 kB / 1.073 GB, free: 2.422 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/1.062, allocations: 30.45 kB / 1.073 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/1.062, allocations: 7.5 kB / 1.073 GB, free: 2.391 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001763/1.063, allocations: 175.6 kB / 1.073 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.6e-07/1.063, allocations: 4 kB / 1.073 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0006871/1.063, allocations: 145.1 kB / 1.073 GB, free: 2.117 MB / 0.6823 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) * 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.00108/1.064, allocations: 1.281 MB / 1.075 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001307/1.066, allocations: 0.8601 MB / 1.075 GB, free: 136 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.066, allocations: 0 / 1.075 GB, free: 136 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004464/1.066, allocations: 292.5 kB / 1.076 GB, free: 15.89 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/1.066, allocations: 42.42 kB / 1.076 GB, free: 15.86 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/1.068, allocations: 0.5553 MB / 1.076 GB, free: 15.34 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/1.068, allocations: 0.7933 MB / 1.077 GB, free: 14.53 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003359/1.068, allocations: 106.1 kB / 1.077 GB, free: 14.43 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/1.069, allocations: 84.41 kB / 1.077 GB, free: 14.4 MB / 0.698 GB Notification: Performance of SimCode: time 8.22e-07/1.069, allocations: 0 / 1.077 GB, free: 14.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/1.088, allocations: 6.863 MB / 1.084 GB, free: 7.719 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000224/1.089, allocations: 207.9 kB / 1.084 GB, free: 7.488 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.049/3.138, allocations: 5.719 kB / 1.084 GB, free: 7.484 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)