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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.681/1.681, allocations: 292.6 MB / 307.5 MB, free: 5.156 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 173.1 kB / 377.1 MB, free: 1.512 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205.4 MB / 0.6366 GB, free: 8.594 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009032/0.0009033, allocations: 89.16 kB / 0.7509 GB, free: 63.18 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003187, allocations: 8 kB / 0.8749 GB, free: 11.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2552, allocations: 116.3 MB / 0.9884 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7854/1.041, allocations: 161 MB / 1.146 GB, free: 18.24 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003384/1.041, allocations: 93.16 kB / 1.146 GB, free: 18.17 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.04177/1.083, allocations: 17.11 MB / 1.162 GB, free: 4.277 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.465e-06/1.083, allocations: 0 / 1.162 GB, free: 4.277 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.704e-05/1.083, allocations: 7.984 kB / 1.162 GB, free: 4.27 MB / 0.7292 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.001359/1.084, allocations: 0.6388 MB / 1.163 GB, free: 3.578 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/1.084, allocations: 12.02 kB / 1.163 GB, free: 3.566 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/1.084, allocations: 67.41 kB / 1.163 GB, free: 3.492 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008902/1.085, allocations: 109.5 kB / 1.163 GB, free: 3.387 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/1.086, allocations: 266.4 kB / 1.164 GB, free: 3.086 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/1.086, allocations: 24.42 kB / 1.164 GB, free: 3.062 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/1.086, allocations: 31.33 kB / 1.164 GB, free: 3.035 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007291/1.087, allocations: 422.5 kB / 1.164 GB, free: 2.598 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/1.087, allocations: 0 / 1.164 GB, free: 2.598 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.241e-05/1.087, allocations: 4 kB / 1.164 GB, free: 2.594 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.139e-05/1.087, allocations: 24.36 kB / 1.164 GB, free: 2.566 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007937/1.088, allocations: 416.7 kB / 1.164 GB, free: 2.16 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/1.09, allocations: 1.65 MB / 1.166 GB, free: 396 kB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/1.091, allocations: 490.7 kB / 1.166 GB, free: 15.89 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001964/1.091, allocations: 98.3 kB / 1.167 GB, free: 15.77 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006021/1.092, allocations: 270.5 kB / 1.167 GB, free: 15.49 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=27): time 2.866e-06/1.092, allocations: 0 / 1.167 GB, free: 15.49 MB / 0.7448 GB Notification: Performance of matching and sorting (n=28): time 0.002094/1.094, allocations: 0.7789 MB / 1.168 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/1.094, allocations: 85.3 kB / 1.168 GB, free: 14.58 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/1.094, allocations: 200.2 kB / 1.168 GB, free: 14.38 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/1.094, allocations: 33.7 kB / 1.168 GB, free: 14.34 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/1.094, allocations: 168.2 kB / 1.168 GB, free: 14.17 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.905e-05/1.094, allocations: 98.58 kB / 1.168 GB, free: 14.07 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.163e-05/1.094, allocations: 8 kB / 1.168 GB, free: 14.06 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001781/1.095, allocations: 334.8 kB / 1.168 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004043/1.095, allocations: 184.2 kB / 1.169 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004423/1.095, allocations: 249.1 kB / 1.169 GB, free: 13.27 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004555/1.096, allocations: 243 kB / 1.169 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/1.096, allocations: 0 / 1.169 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001156/1.097, allocations: 0.5586 MB / 1.17 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004309/1.097, allocations: 0.8989 MB / 1.171 GB, free: 11.49 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/1.097, allocations: 7.938 kB / 1.171 GB, free: 11.48 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002461/1.098, allocations: 44.81 kB / 1.171 GB, free: 11.44 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004331/1.098, allocations: 88.42 kB / 1.171 GB, free: 11.35 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/1.1, allocations: 1.506 MB / 1.172 GB, free: 9.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003764/1.1, allocations: 56.92 kB / 1.172 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/1.1, allocations: 15.98 kB / 1.172 GB, free: 9.637 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 7.495e-06/1.1, allocations: 4 kB / 1.172 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001084/1.101, allocations: 0.4988 MB / 1.173 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/1.101, allocations: 7.984 kB / 1.173 GB, free: 9.117 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001352/1.101, allocations: 36.83 kB / 1.173 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003742/1.102, allocations: 95.69 kB / 1.173 GB, free: 8.984 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/1.103, allocations: 1.503 MB / 1.174 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003228/1.103, allocations: 47.88 kB / 1.174 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/1.104, allocations: 21 kB / 1.174 GB, free: 7.281 MB / 0.7448 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.0002881/1.104, allocations: 233 kB / 1.175 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.448e-05/1.104, allocations: 27.67 kB / 1.175 GB, free: 7.016 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/1.105, allocations: 492.2 kB / 1.175 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/1.105, allocations: 4 kB / 1.175 GB, free: 6.512 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/1.105, allocations: 0.8125 kB / 1.175 GB, free: 6.512 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/1.105, allocations: 7.984 kB / 1.175 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007414/1.106, allocations: 0.5661 MB / 1.176 GB, free: 5.875 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/1.106, allocations: 3.938 kB / 1.176 GB, free: 5.871 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/1.106, allocations: 75.92 kB / 1.176 GB, free: 5.797 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001343/1.106, allocations: 37.95 kB / 1.176 GB, free: 5.758 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/1.106, allocations: 7.984 kB / 1.176 GB, free: 5.75 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/1.108, allocations: 1.429 MB / 1.177 GB, free: 4.191 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.108, allocations: 0 / 1.177 GB, free: 4.191 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/1.109, allocations: 0.6011 MB / 1.178 GB, free: 3.543 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/1.109, allocations: 136.6 kB / 1.178 GB, free: 3.391 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.443e-05/1.109, allocations: 8 kB / 1.178 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/1.109, allocations: 45.12 kB / 1.178 GB, free: 3.34 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/1.109, allocations: 31.89 kB / 1.178 GB, free: 3.309 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/1.109, allocations: 8 kB / 1.178 GB, free: 3.301 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001818/1.11, allocations: 172.5 kB / 1.178 GB, free: 3.137 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.11e-07/1.11, allocations: 0 / 1.178 GB, free: 3.137 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0006761/1.11, allocations: 144 kB / 1.178 GB, free: 2.996 MB / 0.7448 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.001496/1.112, allocations: 1.378 MB / 1.18 GB, free: 1.57 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.002009/1.114, allocations: 1.02 MB / 1.181 GB, free: 0.5 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.114, allocations: 0 / 1.181 GB, free: 0.5 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0006261/1.115, allocations: 346.7 kB / 1.181 GB, free: 152 kB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/1.115, allocations: 34.05 kB / 1.181 GB, free: 120 kB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004809/1.12, allocations: 3.351 MB / 1.184 GB, free: 12.67 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005365/1.12, allocations: 0.7917 MB / 1.185 GB, free: 11.85 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0003619/1.121, allocations: 92 kB / 1.185 GB, free: 11.76 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/1.121, allocations: 91.39 kB / 1.185 GB, free: 11.67 MB / 0.7605 GB Notification: Performance of SimCode: time 1.513e-06/1.121, allocations: 0 / 1.185 GB, free: 11.67 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/1.143, allocations: 6.554 MB / 1.192 GB, free: 5.355 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/1.143, allocations: 227.2 kB / 1.192 GB, free: 5.113 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.346/3.489, allocations: 0 / 1.192 GB, free: 5.113 MB / 0.7605 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)