Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.0009896/0.0009896, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001001/0.001001, allocations: 172.7 kB / 15.95 MB, free: 208 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.55/1.55, allocations: 205.4 MB / 222.1 MB, free: 5.469 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.719/1.719, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0008496/0.0008497, allocations: 20.28 kB / 0.6738 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3452, allocations: 116.3 MB / 0.7874 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006197/0.3514, allocations: 4.824 MB / 0.7921 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004342/0.3558, allocations: 2.481 MB / 0.7945 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004061/0.3563, allocations: 19.81 kB / 0.7946 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.3566, allocations: 103.1 kB / 0.7947 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000833/0.3574, allocations: 322.2 kB / 0.795 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008059/0.3582, allocations: 295.3 kB / 0.7952 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001101/0.3593, allocations: 1.045 MB / 0.7963 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001224/0.3606, allocations: 0.7359 MB / 0.797 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004555/0.361, allocations: 310.7 kB / 0.7973 GB, free: 1.641 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000486/0.3615, allocations: 378.6 kB / 0.7976 GB, free: 1.27 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.771e-05/0.3616, allocations: 28 kB / 0.7977 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000503/0.3621, allocations: 187.7 kB / 0.7979 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.3623, allocations: 211.4 kB / 0.7981 GB, free: 0.8516 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.3625, allocations: 145.3 kB / 0.7982 GB, free: 0.7031 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007394/0.3632, allocations: 0.7249 MB / 0.7989 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3632, allocations: 0 / 0.7989 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3633, allocations: 0 / 0.7989 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.3633, allocations: 0 / 0.7989 GB, free: 15.97 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001389/0.3647, allocations: 0.8605 MB / 0.7997 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3647, allocations: 12.03 kB / 0.7998 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.3648, allocations: 102.5 kB / 0.7998 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/0.3662, allocations: 187 kB / 0.8 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006852/0.3669, allocations: 465.5 kB / 0.8005 GB, free: 14.27 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.828e-05/0.3669, allocations: 44.98 kB / 0.8005 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.3671, allocations: 51.98 kB / 0.8006 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.3683, allocations: 0.8239 MB / 0.8014 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.3683, allocations: 15.8 kB / 0.8014 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.555e-05/0.3684, allocations: 27.92 kB / 0.8014 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001683/0.3686, allocations: 68.94 kB / 0.8015 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008815/0.3695, allocations: 0.5619 MB / 0.802 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004468/0.374, allocations: 4.585 MB / 0.8065 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004926/0.3745, allocations: 298.3 kB / 0.8068 GB, free: 7.359 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003165/0.3748, allocations: 229.3 kB / 0.807 GB, free: 7.133 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.3748, allocations: 8.266 kB / 0.807 GB, free: 7.125 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.3749, allocations: 38.84 kB / 0.807 GB, free: 7.078 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=33): time 2.675e-06/0.3749, allocations: 0 / 0.807 GB, free: 7.078 MB / 0.6231 GB Notification: Performance of matching and sorting (n=40): time 0.005377/0.3803, allocations: 2.615 MB / 0.8096 GB, free: 4.336 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.3803, allocations: 55.41 kB / 0.8097 GB, free: 4.27 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004798/0.3808, allocations: 458 kB / 0.8101 GB, free: 3.812 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/0.3809, allocations: 33.7 kB / 0.8101 GB, free: 3.773 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.3812, allocations: 343.6 kB / 0.8105 GB, free: 3.43 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.3813, allocations: 141.9 kB / 0.8106 GB, free: 3.289 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.392e-05/0.3813, allocations: 16 kB / 0.8106 GB, free: 3.273 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002849/0.3816, allocations: 358.8 kB / 0.8109 GB, free: 2.914 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000358/0.382, allocations: 236.9 kB / 0.8112 GB, free: 2.684 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.3824, allocations: 410.4 kB / 0.8116 GB, free: 2.211 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004186/0.3829, allocations: 293.5 kB / 0.8118 GB, free: 1.926 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3829, allocations: 0 / 0.8118 GB, free: 1.926 MB / 0.6231 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001552/0.3844, allocations: 0.9211 MB / 0.8127 GB, free: 0.9883 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3845, allocations: 8 kB / 0.8128 GB, free: 0.9805 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.3845, allocations: 4 kB / 0.8128 GB, free: 0.9766 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007764/0.3853, allocations: 227 kB / 0.813 GB, free: 0.7461 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.3858, allocations: 119.8 kB / 0.8131 GB, free: 0.6289 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004822/0.3906, allocations: 4.927 MB / 0.8179 GB, free: 11.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004538/0.3911, allocations: 31.97 kB / 0.8179 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.3911, allocations: 24 kB / 0.8179 GB, free: 11.24 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003444/0.3915, allocations: 225.6 kB / 0.8182 GB, free: 11.01 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.489e-05/0.3916, allocations: 59.41 kB / 0.8182 GB, free: 10.95 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001506/0.3931, allocations: 0.774 MB / 0.819 GB, free: 10.16 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.3931, allocations: 8 kB / 0.819 GB, free: 10.15 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3931, allocations: 4 kB / 0.819 GB, free: 10.14 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3931, allocations: 144 / 0.819 GB, free: 10.14 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/0.3956, allocations: 1.491 MB / 0.8204 GB, free: 8.566 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.3956, allocations: 0 / 0.8204 GB, free: 8.566 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.396, allocations: 76.08 kB / 0.8205 GB, free: 8.492 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006434/0.3966, allocations: 202.4 kB / 0.8207 GB, free: 8.285 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/0.3967, allocations: 8 kB / 0.8207 GB, free: 8.277 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004647/0.4013, allocations: 4.884 MB / 0.8255 GB, free: 2.996 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4014, allocations: 0 / 0.8255 GB, free: 2.996 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.4031, allocations: 1.143 MB / 0.8266 GB, free: 1.805 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002241/0.4033, allocations: 164.4 kB / 0.8268 GB, free: 1.625 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.798e-05/0.4034, allocations: 15.98 kB / 0.8268 GB, free: 1.609 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002918/0.4037, allocations: 24.16 kB / 0.8268 GB, free: 1.586 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.349e-05/0.4038, allocations: 35.91 kB / 0.8268 GB, free: 1.551 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.966e-05/0.4038, allocations: 20 kB / 0.8269 GB, free: 1.531 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0003824/0.4042, allocations: 306.9 kB / 0.8271 GB, free: 1.234 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4042, allocations: 0 / 0.8271 GB, free: 1.234 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0007231/0.405, allocations: 168 kB / 0.8273 GB, free: 1.07 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002125/0.4071, allocations: 1.684 MB / 0.8289 GB, free: 15.33 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001678/0.4088, allocations: 1 MB / 0.8299 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4088, allocations: 0 / 0.8299 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0009627/0.4098, allocations: 0.6837 MB / 0.8306 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008763/0.4107, allocations: 168.2 kB / 0.8308 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006004/0.4167, allocations: 3.829 MB / 0.8345 GB, free: 9.43 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005796/0.4173, allocations: 0.9416 MB / 0.8354 GB, free: 8.457 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0004097/0.4177, allocations: 113 kB / 0.8355 GB, free: 8.344 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/0.418, allocations: 203.4 kB / 0.8357 GB, free: 8.145 MB / 0.6544 GB Notification: Performance of SimCode: time 9.92e-07/0.418, allocations: 0 / 0.8357 GB, free: 8.145 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04451/0.4625, allocations: 13.21 MB / 0.8486 GB, free: 11.22 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002735/0.4628, allocations: 219 kB / 0.8488 GB, free: 10.98 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.222/2.685, allocations: 0 / 0.8488 GB, free: 10.98 MB / 0.67 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) Environment - environmentSimulation: