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.644/1.644, allocations: 289.7 MB / 302.2 MB, free: 2.207 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.001051/0.001051, allocations: 178.8 kB / 371.6 MB, free: 3.34 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.55/1.55, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.0009183/0.0009183, allocations: 93.62 kB / 0.745 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.612e-05/4.613e-05, allocations: 4 kB / 0.8663 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2615, allocations: 116.3 MB / 0.9799 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8073/1.069, allocations: 160.9 MB / 1.137 GB, free: 29.04 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/1.069, allocations: 99.05 kB / 1.137 GB, free: 29 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.04337/1.113, allocations: 16.99 MB / 1.154 GB, free: 20.04 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.284e-06/1.113, allocations: 0 / 1.154 GB, free: 20.04 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.345e-05/1.113, allocations: 8 kB / 1.154 GB, free: 20.04 MB / 0.7448 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.001104/1.114, allocations: 0.6158 MB / 1.154 GB, free: 19.44 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/1.114, allocations: 9.531 kB / 1.154 GB, free: 19.43 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/1.114, allocations: 58.55 kB / 1.154 GB, free: 19.38 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008069/1.115, allocations: 98.52 kB / 1.154 GB, free: 19.31 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/1.115, allocations: 275.9 kB / 1.155 GB, free: 19.05 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/1.115, allocations: 22.52 kB / 1.155 GB, free: 19.04 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.805e-05/1.115, allocations: 20.81 kB / 1.155 GB, free: 19.02 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005699/1.116, allocations: 369.6 kB / 1.155 GB, free: 18.79 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/1.116, allocations: 6.188 kB / 1.155 GB, free: 18.78 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/1.116, allocations: 10.73 kB / 1.155 GB, free: 18.77 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.13e-05/1.116, allocations: 23.7 kB / 1.155 GB, free: 18.75 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/1.116, allocations: 315 kB / 1.155 GB, free: 18.58 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/1.118, allocations: 1.658 MB / 1.157 GB, free: 17.18 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007476/1.119, allocations: 397.5 kB / 1.157 GB, free: 16.93 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/1.119, allocations: 161.8 kB / 1.158 GB, free: 16.84 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001669/1.119, allocations: 88.42 kB / 1.158 GB, free: 16.73 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003543/1.12, allocations: 233.4 kB / 1.158 GB, free: 16.59 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=27): time 2.284e-06/1.12, allocations: 0 / 1.158 GB, free: 16.59 MB / 0.7448 GB Notification: Performance of matching and sorting (n=28): time 0.00094/1.121, allocations: 430.1 kB / 1.158 GB, free: 16.29 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/1.121, allocations: 85.84 kB / 1.158 GB, free: 16.19 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/1.121, allocations: 197 kB / 1.159 GB, free: 16.03 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/1.121, allocations: 29.64 kB / 1.159 GB, free: 16 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.349e-05/1.121, allocations: 175.7 kB / 1.159 GB, free: 15.86 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.515e-05/1.121, allocations: 97.41 kB / 1.159 GB, free: 15.79 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/1.121, allocations: 3.938 kB / 1.159 GB, free: 15.79 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.982e-05/1.121, allocations: 336.7 kB / 1.159 GB, free: 15.46 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/1.121, allocations: 131.8 kB / 1.159 GB, free: 15.39 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/1.122, allocations: 203.4 kB / 1.16 GB, free: 15.23 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/1.122, allocations: 183.6 kB / 1.16 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/1.122, allocations: 0 / 1.16 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007185/1.123, allocations: 482.5 kB / 1.16 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.000275/1.123, allocations: 0.9007 MB / 1.161 GB, free: 13.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/1.123, allocations: 0 / 1.161 GB, free: 13.84 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002515/1.123, allocations: 40.84 kB / 1.161 GB, free: 13.81 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004076/1.124, allocations: 91.39 kB / 1.161 GB, free: 13.74 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/1.125, allocations: 1.499 MB / 1.163 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/1.125, allocations: 51.52 kB / 1.163 GB, free: 12.24 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.492e-05/1.125, allocations: 20.72 kB / 1.163 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 7.333e-06/1.125, allocations: 4 kB / 1.163 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006467/1.126, allocations: 412.6 kB / 1.163 GB, free: 11.96 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/1.126, allocations: 7.344 kB / 1.163 GB, free: 11.96 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001146/1.126, allocations: 39.8 kB / 1.163 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000345/1.126, allocations: 85.28 kB / 1.163 GB, free: 11.86 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008671/1.127, allocations: 1.475 MB / 1.165 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/1.128, allocations: 53.11 kB / 1.165 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/1.128, allocations: 14.75 kB / 1.165 GB, free: 10.37 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 () * 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.0001054/1.128, allocations: 135.1 kB / 1.165 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/1.128, allocations: 27.67 kB / 1.165 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006567/1.128, allocations: 396 kB / 1.165 GB, free: 9.984 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/1.128, allocations: 4 kB / 1.165 GB, free: 9.98 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/1.128, allocations: 1.594 kB / 1.165 GB, free: 9.98 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/1.128, allocations: 5.203 kB / 1.165 GB, free: 9.977 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005849/1.129, allocations: 0.574 MB / 1.166 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/1.129, allocations: 0 / 1.166 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003719/1.129, allocations: 78.88 kB / 1.166 GB, free: 9.457 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/1.13, allocations: 39.81 kB / 1.166 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/1.13, allocations: 12.16 kB / 1.166 GB, free: 9.422 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007576/1.13, allocations: 1.4 MB / 1.167 GB, free: 8.027 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.13, allocations: 3.938 kB / 1.167 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005491/1.131, allocations: 0.5054 MB / 1.168 GB, free: 7.613 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/1.131, allocations: 140.5 kB / 1.168 GB, free: 7.477 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.933e-05/1.131, allocations: 3 kB / 1.168 GB, free: 7.477 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/1.131, allocations: 44.34 kB / 1.168 GB, free: 7.449 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/1.132, allocations: 35.67 kB / 1.168 GB, free: 7.434 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/1.132, allocations: 7.75 kB / 1.168 GB, free: 7.43 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.000135/1.132, allocations: 175.6 kB / 1.168 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.9e-07/1.132, allocations: 2.438 kB / 1.168 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0005827/1.132, allocations: 146.7 kB / 1.168 GB, free: 7.164 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) * 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.0008923/1.133, allocations: 1.28 MB / 1.17 GB, free: 5.977 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001119/1.134, allocations: 0.8608 MB / 1.17 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/1.134, allocations: 0 / 1.17 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003588/1.135, allocations: 293.8 kB / 1.171 GB, free: 5.059 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/1.135, allocations: 46.27 kB / 1.171 GB, free: 5.035 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/1.136, allocations: 0.5433 MB / 1.171 GB, free: 4.602 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/1.137, allocations: 0.7914 MB / 1.172 GB, free: 19.83 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0003296/1.137, allocations: 105.7 kB / 1.172 GB, free: 19.76 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/1.137, allocations: 88.95 kB / 1.172 GB, free: 19.74 MB / 0.7605 GB Notification: Performance of SimCode: time 3.41e-07/1.137, allocations: 0 / 1.172 GB, free: 19.74 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/1.161, allocations: 6.848 MB / 1.179 GB, free: 14.48 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/1.161, allocations: 189.3 kB / 1.179 GB, free: 14.26 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.188/3.349, allocations: 4 kB / 1.179 GB, free: 14.25 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)