Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",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.001283/0.001283, allocations: 101.2 kB / 16.4 MB, free: 6.5 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.001288/0.001288, allocations: 192 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7741/0.7741, allocations: 126.1 MB / 417.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 66.78 kB / 0.5726 GB, free: 27.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.151, allocations: 78.7 MB / 0.6495 GB, free: 4.59 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04234/0.1934, allocations: 37.94 MB / 0.6865 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02063/0.2141, allocations: 10.98 MB / 0.6972 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003533/0.2176, allocations: 159.2 kB / 0.6974 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.01103/0.2288, allocations: 4.372 MB / 0.7017 GB, free: 14.96 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.007689/0.2365, allocations: 2.332 MB / 0.7039 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.007402/0.2439, allocations: 2.169 MB / 0.7061 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01374/0.2577, allocations: 9.307 MB / 0.7152 GB, free: 1.121 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01752/0.2752, allocations: 11.25 MB / 0.7261 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006324/0.2816, allocations: 4.055 MB / 0.7301 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007438/0.289, allocations: 4.51 MB / 0.7345 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002583/0.2916, allocations: 0.8203 MB / 0.7353 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004266/0.2959, allocations: 1.592 MB / 0.7369 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.004993/0.3009, allocations: 3.15 MB / 0.7399 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.007531/0.3085, allocations: 3.657 MB / 0.7435 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.3943/0.7028, allocations: 12.33 MB / 0.7556 GB, free: 35.12 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.7029, allocations: 1 kB / 0.7556 GB, free: 35.12 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7029, allocations: 0 / 0.7556 GB, free: 35.12 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0005295/0.7034, allocations: 0 / 0.7556 GB, free: 35.12 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.0242/0.7276, allocations: 6.473 MB / 0.7619 GB, free: 32.73 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.7277, allocations: 9.938 kB / 0.7619 GB, free: 32.73 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003506/0.7312, allocations: 0.826 MB / 0.7627 GB, free: 32.66 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007999/0.7392, allocations: 1.102 MB / 0.7638 GB, free: 32.31 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.751, allocations: 3.63 MB / 0.7673 GB, free: 31.56 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005823/0.7516, allocations: 428.2 kB / 0.7677 GB, free: 31.55 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003822/0.7555, allocations: 0.5413 MB / 0.7683 GB, free: 31.54 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02638/0.7819, allocations: 9.376 MB / 0.7774 GB, free: 30.48 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001955/0.7821, allocations: 23.33 kB / 0.7774 GB, free: 30.47 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001474/0.7836, allocations: 246.2 kB / 0.7777 GB, free: 30.47 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000726/0.7843, allocations: 423.2 kB / 0.7781 GB, free: 30.46 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01643/0.8007, allocations: 7.125 MB / 0.785 GB, free: 29.41 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05099/0.8518, allocations: 41.07 MB / 0.8251 GB, free: 7.984 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007396/0.8592, allocations: 3.097 MB / 0.8282 GB, free: 6.398 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004323/0.8636, allocations: 2.159 MB / 0.8303 GB, free: 5.266 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002022/0.8638, allocations: 22.34 kB / 0.8303 GB, free: 5.266 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.075e-05/0.8639, allocations: 62.5 kB / 0.8303 GB, free: 5.207 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=209): time 6.452e-06/0.8639, allocations: 4 kB / 0.8303 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of matching and sorting (n=212): time 0.02714/0.8911, allocations: 10.63 MB / 0.8407 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.8912, allocations: 77.34 kB / 0.8408 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003538/0.8947, allocations: 2.002 MB / 0.8428 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0003475/0.8951, allocations: 65.7 kB / 0.8428 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001602/0.8967, allocations: 2.471 MB / 0.8452 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008071/0.8975, allocations: 0.7709 MB / 0.846 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/0.8986, allocations: 477 kB / 0.8464 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.8987, allocations: 309.1 kB / 0.8467 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/0.9008, allocations: 1.372 MB / 0.8481 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002563/0.9034, allocations: 2.109 MB / 0.8501 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005/0.9084, allocations: 3.761 MB / 0.8538 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.922e-05/0.9085, allocations: 4 kB / 0.8538 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009046/0.9175, allocations: 5.088 MB / 0.8588 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.545e-05/0.9176, allocations: 16 kB / 0.8588 GB, free: 9.277 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.323e-05/0.9176, allocations: 24 kB / 0.8588 GB, free: 9.254 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004108/0.9218, allocations: 1.584 MB / 0.8604 GB, free: 7.668 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.9237, allocations: 456.5 kB / 0.8608 GB, free: 7.254 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02419/0.9479, allocations: 18.61 MB / 0.879 GB, free: 4.168 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002973/0.9509, allocations: 147.9 kB / 0.8791 GB, free: 4.023 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006405/0.9516, allocations: 104 kB / 0.8792 GB, free: 3.922 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004741/0.9563, allocations: 1.94 MB / 0.8811 GB, free: 2 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/0.9574, allocations: 302.2 kB / 0.8814 GB, free: 1.703 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00846/0.9658, allocations: 4.451 MB / 0.8857 GB, free: 13.28 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.367e-05/0.9659, allocations: 20 kB / 0.8858 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.464e-05/0.966, allocations: 16 kB / 0.8858 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.573e-05/0.966, allocations: 11.95 kB / 0.8858 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02093/0.9869, allocations: 9.67 MB / 0.8952 GB, free: 3.547 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/0.987, allocations: 4 kB / 0.8952 GB, free: 3.543 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.9881, allocations: 235.9 kB / 0.8955 GB, free: 3.324 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003701/0.9918, allocations: 1.429 MB / 0.8969 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002891/0.9922, allocations: 42.52 kB / 0.8969 GB, free: 1.848 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02538/1.018, allocations: 18.58 MB / 0.915 GB, free: 14.75 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.797e-06/1.018, allocations: 11.19 kB / 0.9151 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008632/1.026, allocations: 4.561 MB / 0.9195 GB, free: 10.16 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002073/1.028, allocations: 0.6436 MB / 0.9201 GB, free: 9.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/1.03, allocations: 43.98 kB / 0.9202 GB, free: 9.457 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002286/1.032, allocations: 119.2 kB / 0.9203 GB, free: 9.344 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006372/1.032, allocations: 176.8 kB / 0.9205 GB, free: 9.172 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002118/1.033, allocations: 60.25 kB / 0.9205 GB, free: 9.113 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002712/1.035, allocations: 1.315 MB / 0.9218 GB, free: 7.789 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.3e-07/1.035, allocations: 0 / 0.9218 GB, free: 7.789 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.004875/1.04, allocations: 1.144 MB / 0.9229 GB, free: 6.648 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 simulation (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00812/1.048, allocations: 5.176 MB / 0.928 GB, free: 1.449 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.008328/1.057, allocations: 4.728 MB / 0.9326 GB, free: 12.79 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/1.057, allocations: 4 kB / 0.9326 GB, free: 12.79 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.004919/1.062, allocations: 2.934 MB / 0.9355 GB, free: 9.844 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006435/1.068, allocations: 0.8869 MB / 0.9363 GB, free: 8.98 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.065/1.133, allocations: 30.54 MB / 0.9661 GB, free: 9.508 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007051/1.14, allocations: 3.698 MB / 0.9698 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00253/1.143, allocations: 0.5557 MB / 0.9703 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002829/1.146, allocations: 1.948 MB / 0.9722 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of SimCode: time 1.162e-06/1.146, allocations: 0 / 0.9722 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5003/1.646, allocations: 85.23 MB / 1.055 GB, free: 292 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.76/16.41, allocations: 3.188 kB / 1.055 GB, free: 292 MB / 0.795 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1)