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.001521/0.001521, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001843/0.001843, allocations: 187.5 kB / 16.64 MB, free: 6.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.654/1.654, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.002472/0.002472, allocations: 74.19 kB / 0.6718 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2408, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007843/0.2487, allocations: 5.448 MB / 0.789 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004611/0.2533, allocations: 2.643 MB / 0.7915 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005903/0.2539, allocations: 19.88 kB / 0.7916 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.2559, allocations: 0.6807 MB / 0.7922 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001255/0.2572, allocations: 409.7 kB / 0.7926 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.2587, allocations: 390.3 kB / 0.793 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001594/0.2603, allocations: 0.9513 MB / 0.7939 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008441/0.2611, allocations: 466.7 kB / 0.7944 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007704/0.2619, allocations: 370.6 kB / 0.7947 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007257/0.2627, allocations: 402.4 kB / 0.7951 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.2628, allocations: 48 kB / 0.7951 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008108/0.2636, allocations: 367.2 kB / 0.7955 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003105/0.264, allocations: 251.3 kB / 0.7957 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005249/0.2645, allocations: 346.3 kB / 0.7961 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.2659, allocations: 0.9772 MB / 0.797 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2659, allocations: 4 kB / 0.797 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2659, allocations: 0 / 0.797 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.248e-05/0.266, allocations: 0 / 0.797 GB, free: 15.52 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.001919/0.2679, allocations: 0.9645 MB / 0.798 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.2679, allocations: 8.031 kB / 0.798 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001369/0.2681, allocations: 110.6 kB / 0.7981 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001435/0.2695, allocations: 195.8 kB / 0.7983 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008892/0.2704, allocations: 0.5141 MB / 0.7988 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/0.2705, allocations: 41.36 kB / 0.7988 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.2706, allocations: 44.56 kB / 0.7988 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.2718, allocations: 0.8316 MB / 0.7997 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/0.2719, allocations: 7.938 kB / 0.7997 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.203e-05/0.272, allocations: 31.92 kB / 0.7997 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001823/0.2721, allocations: 60.95 kB / 0.7998 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000901/0.2731, allocations: 0.5736 MB / 0.8003 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004683/0.2777, allocations: 4.565 MB / 0.8048 GB, free: 7.055 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004572/0.2782, allocations: 291.3 kB / 0.8051 GB, free: 6.762 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003072/0.2786, allocations: 233.2 kB / 0.8053 GB, free: 6.531 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.2786, allocations: 8.219 kB / 0.8053 GB, free: 6.523 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.2786, allocations: 38.84 kB / 0.8053 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=33): time 2.594e-06/0.2786, allocations: 0 / 0.8053 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of matching and sorting (n=40): time 0.005676/0.2843, allocations: 2.627 MB / 0.8079 GB, free: 3.723 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.2844, allocations: 55.41 kB / 0.8079 GB, free: 3.656 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005141/0.2849, allocations: 457.9 kB / 0.8084 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.285, allocations: 33.7 kB / 0.8084 GB, free: 3.156 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.2852, allocations: 343.6 kB / 0.8087 GB, free: 2.812 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.2853, allocations: 142 kB / 0.8089 GB, free: 2.672 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.2855, allocations: 106.1 kB / 0.809 GB, free: 2.562 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.2857, allocations: 362.8 kB / 0.8093 GB, free: 2.199 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000348/0.2861, allocations: 233 kB / 0.8095 GB, free: 1.973 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004738/0.2866, allocations: 413.2 kB / 0.8099 GB, free: 1.492 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009058/0.2875, allocations: 0.67 MB / 0.8106 GB, free: 0.75 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.2875, allocations: 4 kB / 0.8106 GB, free: 0.7461 MB / 0.6231 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001689/0.2892, allocations: 0.9247 MB / 0.8115 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.2892, allocations: 8 kB / 0.8115 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.2892, allocations: 4 kB / 0.8115 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000799/0.29, allocations: 223 kB / 0.8117 GB, free: 15.56 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.2906, allocations: 123.7 kB / 0.8118 GB, free: 15.44 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005066/0.2956, allocations: 5.34 MB / 0.8171 GB, free: 9.688 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005229/0.2962, allocations: 36.03 kB / 0.8171 GB, free: 9.652 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.913e-05/0.2963, allocations: 24 kB / 0.8171 GB, free: 9.629 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003082/0.2966, allocations: 221.9 kB / 0.8173 GB, free: 9.402 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.924e-05/0.2967, allocations: 59.28 kB / 0.8174 GB, free: 9.344 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.2981, allocations: 0.7781 MB / 0.8181 GB, free: 8.551 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.2981, allocations: 4 kB / 0.8181 GB, free: 8.547 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2981, allocations: 0 / 0.8181 GB, free: 8.547 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2981, allocations: 0 / 0.8181 GB, free: 8.547 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002254/0.3004, allocations: 1.498 MB / 0.8196 GB, free: 6.961 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3004, allocations: 4 kB / 0.8196 GB, free: 6.957 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.3008, allocations: 67.88 kB / 0.8197 GB, free: 6.891 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006439/0.3014, allocations: 206.6 kB / 0.8199 GB, free: 6.68 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.3015, allocations: 8 kB / 0.8199 GB, free: 6.672 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004446/0.3059, allocations: 5.273 MB / 0.825 GB, free: 0.9688 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.306, allocations: 8.016 kB / 0.825 GB, free: 0.9609 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.3076, allocations: 1.139 MB / 0.8261 GB, free: 15.77 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002309/0.3079, allocations: 172.4 kB / 0.8263 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.737e-05/0.3079, allocations: 16.11 kB / 0.8263 GB, free: 15.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003246/0.3083, allocations: 31.97 kB / 0.8264 GB, free: 15.54 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-05/0.3084, allocations: 36.16 kB / 0.8264 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.3084, allocations: 12 kB / 0.8264 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000328/0.3087, allocations: 314.8 kB / 0.8267 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3087, allocations: 0 / 0.8267 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000686/0.3094, allocations: 172 kB / 0.8269 GB, free: 15.02 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001881/0.3113, allocations: 1.684 MB / 0.8285 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00153/0.3129, allocations: 1.013 MB / 0.8295 GB, free: 12.22 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3129, allocations: 0 / 0.8295 GB, free: 12.22 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0009017/0.3138, allocations: 0.6875 MB / 0.8302 GB, free: 11.5 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008696/0.3147, allocations: 176.9 kB / 0.8303 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007223/0.3219, allocations: 5.595 MB / 0.8358 GB, free: 5.453 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005/0.3224, allocations: 0.9416 MB / 0.8367 GB, free: 4.484 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0003446/0.3228, allocations: 113 kB / 0.8368 GB, free: 4.375 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.323, allocations: 211.4 kB / 0.837 GB, free: 4.168 MB / 0.6544 GB Notification: Performance of SimCode: time 9.42e-07/0.323, allocations: 0 / 0.837 GB, free: 4.168 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.362, allocations: 13.96 MB / 0.8507 GB, free: 6.461 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.81, allocations: 17.3 kB / 0.8507 GB, free: 6.445 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-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)