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.001429/0.001429, allocations: 108 kB / 15.61 MB, free: 152 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.001839/0.001839, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.601/1.601, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.92/1.92, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001471/0.001472, allocations: 71.25 kB / 0.6716 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2597, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.009302/0.269, allocations: 5.449 MB / 0.7888 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.005322/0.2744, allocations: 2.635 MB / 0.7914 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007003/0.2751, allocations: 19.88 kB / 0.7914 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002144/0.2774, allocations: 0.6797 MB / 0.7921 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.2788, allocations: 409.7 kB / 0.7924 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.28, allocations: 391.1 kB / 0.7928 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001428/0.2814, allocations: 0.9514 MB / 0.7937 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007592/0.2822, allocations: 466.7 kB / 0.7942 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006893/0.2829, allocations: 370.6 kB / 0.7945 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006201/0.2835, allocations: 406.4 kB / 0.7949 GB, free: 1.59 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.324e-05/0.2836, allocations: 48 kB / 0.795 GB, free: 1.543 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009249/0.2846, allocations: 367.3 kB / 0.7953 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002895/0.2849, allocations: 239.4 kB / 0.7956 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004209/0.2853, allocations: 354.1 kB / 0.7959 GB, free: 0.6016 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.2867, allocations: 0.9617 MB / 0.7968 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.2867, allocations: 4 kB / 0.7968 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.555e-06/0.2867, allocations: 0 / 0.7968 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.347e-05/0.2868, allocations: 0 / 0.7968 GB, free: 15.63 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.001894/0.2887, allocations: 0.9699 MB / 0.7978 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 6.285e-05/0.2887, allocations: 8.031 kB / 0.7978 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.2889, allocations: 94.7 kB / 0.7979 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/0.2904, allocations: 203.7 kB / 0.7981 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008315/0.2912, allocations: 486.4 kB / 0.7985 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.2912, allocations: 37.38 kB / 0.7986 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001905/0.2914, allocations: 60.53 kB / 0.7986 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.2928, allocations: 0.8277 MB / 0.7994 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.2928, allocations: 11.94 kB / 0.7995 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.466e-05/0.2929, allocations: 20 kB / 0.7995 GB, free: 12.75 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002137/0.2931, allocations: 64.95 kB / 0.7995 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009383/0.2941, allocations: 0.5774 MB / 0.8001 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005608/0.2997, allocations: 4.585 MB / 0.8046 GB, free: 7.18 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/0.3002, allocations: 291.3 kB / 0.8049 GB, free: 6.887 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003601/0.3006, allocations: 225.3 kB / 0.8051 GB, free: 6.664 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.3007, allocations: 4.219 kB / 0.8051 GB, free: 6.66 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/0.3007, allocations: 42.84 kB / 0.8051 GB, free: 6.609 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=33): time 4.238e-06/0.3007, allocations: 0 / 0.8051 GB, free: 6.609 MB / 0.6231 GB Notification: Performance of matching and sorting (n=40): time 0.006354/0.3071, allocations: 2.627 MB / 0.8077 GB, free: 3.855 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.3072, allocations: 63.41 kB / 0.8077 GB, free: 3.781 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006189/0.3078, allocations: 453.9 kB / 0.8082 GB, free: 3.324 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.105e-05/0.3079, allocations: 33.7 kB / 0.8082 GB, free: 3.285 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/0.3082, allocations: 339.6 kB / 0.8085 GB, free: 2.945 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.3083, allocations: 149.9 kB / 0.8087 GB, free: 2.797 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.3085, allocations: 102.2 kB / 0.8088 GB, free: 2.691 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002085/0.3087, allocations: 362.8 kB / 0.8091 GB, free: 2.328 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.3091, allocations: 237 kB / 0.8093 GB, free: 2.098 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005354/0.3097, allocations: 417.4 kB / 0.8097 GB, free: 1.613 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009496/0.3106, allocations: 0.674 MB / 0.8104 GB, free: 0.8672 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3106, allocations: 4 kB / 0.8104 GB, free: 0.8633 MB / 0.6231 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001888/0.3125, allocations: 0.9135 MB / 0.8113 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.3126, allocations: 8.938 kB / 0.8113 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.3126, allocations: 8 kB / 0.8113 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008588/0.3135, allocations: 222.4 kB / 0.8115 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005382/0.314, allocations: 119.8 kB / 0.8116 GB, free: 15.57 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006466/0.3205, allocations: 5.347 MB / 0.8169 GB, free: 9.809 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008087/0.3213, allocations: 31.97 kB / 0.8169 GB, free: 9.777 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.3214, allocations: 20 kB / 0.8169 GB, free: 9.758 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.0004994/0.3219, allocations: 232.4 kB / 0.8171 GB, free: 9.523 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.3221, allocations: 59.28 kB / 0.8172 GB, free: 9.465 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.3238, allocations: 0.7703 MB / 0.8179 GB, free: 8.68 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3239, allocations: 4 kB / 0.8179 GB, free: 8.676 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.3239, allocations: 4 kB / 0.8179 GB, free: 8.672 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.3239, allocations: 3.984 kB / 0.8179 GB, free: 8.668 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.3266, allocations: 1.494 MB / 0.8194 GB, free: 7.086 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.3266, allocations: 4.406 kB / 0.8194 GB, free: 7.082 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000397/0.327, allocations: 79.88 kB / 0.8195 GB, free: 7.004 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007498/0.3278, allocations: 202.4 kB / 0.8197 GB, free: 6.797 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.3278, allocations: 11.94 kB / 0.8197 GB, free: 6.785 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005679/0.3335, allocations: 5.281 MB / 0.8248 GB, free: 1.074 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.3336, allocations: 144 / 0.8248 GB, free: 1.074 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.3357, allocations: 1.147 MB / 0.826 GB, free: 15.88 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003624/0.3361, allocations: 172.4 kB / 0.8261 GB, free: 15.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.21e-05/0.3362, allocations: 12 kB / 0.8261 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003432/0.3366, allocations: 23.97 kB / 0.8262 GB, free: 15.66 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.3367, allocations: 31.95 kB / 0.8262 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.3367, allocations: 16 kB / 0.8262 GB, free: 15.61 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003923/0.3371, allocations: 314.9 kB / 0.8265 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3371, allocations: 0 / 0.8265 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0007953/0.3379, allocations: 168 kB / 0.8267 GB, free: 15.14 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.002424/0.3404, allocations: 1.684 MB / 0.8283 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002089/0.3425, allocations: 1.052 MB / 0.8293 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.3425, allocations: 0 / 0.8293 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.3436, allocations: 0.6914 MB / 0.83 GB, free: 11.57 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.3448, allocations: 182.2 kB / 0.8302 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009613/0.3545, allocations: 5.679 MB / 0.8357 GB, free: 5.449 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007475/0.3553, allocations: 0.9454 MB / 0.8367 GB, free: 4.477 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0005039/0.3558, allocations: 113 kB / 0.8368 GB, free: 4.367 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.3561, allocations: 211.4 kB / 0.837 GB, free: 4.16 MB / 0.6544 GB Notification: Performance of SimCode: time 9.52e-07/0.3561, allocations: 4 kB / 0.837 GB, free: 4.156 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0702/0.4263, allocations: 13.91 MB / 0.8506 GB, free: 6.473 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.815/10.24, allocations: 18.59 kB / 0.8506 GB, free: 6.457 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)