Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_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.001048/0.001048, allocations: 108 kB / 15.6 MB, free: 132 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.001091/0.001091, allocations: 197.5 kB / 16.53 MB, free: 6.391 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00207/0.00207, allocations: 295 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9523/0.9523, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 102.8 kB / 0.5954 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1446, allocations: 86.98 MB / 0.6803 GB, free: 0.543 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02453/0.1692, allocations: 23.4 MB / 0.7032 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01082/0.18, allocations: 6.491 MB / 0.7095 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00291/0.183, allocations: 99.5 kB / 0.7096 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004126/0.1871, allocations: 1.495 MB / 0.711 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00436/0.1915, allocations: 1.824 MB / 0.7128 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003259/0.1948, allocations: 1.446 MB / 0.7142 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.006921/0.2017, allocations: 6.923 MB / 0.721 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009421/0.2111, allocations: 7 MB / 0.7278 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004022/0.2152, allocations: 2.824 MB / 0.7306 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004785/0.22, allocations: 3.482 MB / 0.734 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.00137/0.2214, allocations: 0.5273 MB / 0.7345 GB, free: 8.812 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002919/0.2243, allocations: 1.174 MB / 0.7357 GB, free: 7.637 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002967/0.2273, allocations: 2.464 MB / 0.7381 GB, free: 5.168 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003842/0.2311, allocations: 2.532 MB / 0.7405 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.008481/0.2396, allocations: 8.464 MB / 0.7488 GB, free: 10.13 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.2397, allocations: 4 kB / 0.7488 GB, free: 10.13 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.254e-06/0.2397, allocations: 0 / 0.7488 GB, free: 10.13 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001986/0.2399, allocations: 0 / 0.7488 GB, free: 10.13 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.009389/0.2493, allocations: 4.428 MB / 0.7531 GB, free: 5.637 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.2494, allocations: 8.031 kB / 0.7531 GB, free: 5.629 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008004/0.2502, allocations: 0.5714 MB / 0.7537 GB, free: 5.047 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008495/0.2587, allocations: 1.685 MB / 0.7553 GB, free: 3.355 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005494/0.2642, allocations: 2.567 MB / 0.7578 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.2645, allocations: 279.7 kB / 0.7581 GB, free: 472 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001167/0.2656, allocations: 360.2 kB / 0.7585 GB, free: 112 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01275/0.2784, allocations: 7.494 MB / 0.7658 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.551e-05/0.2785, allocations: 7.938 kB / 0.7658 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004289/0.279, allocations: 159.9 kB / 0.7659 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005953/0.2796, allocations: 487.3 kB / 0.7664 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01001/0.2896, allocations: 5.701 MB / 0.772 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3064/0.596, allocations: 31.71 MB / 0.8029 GB, free: 62.22 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002503/0.5986, allocations: 2.098 MB / 0.805 GB, free: 61.43 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002373/0.601, allocations: 2.183 MB / 0.8071 GB, free: 60.62 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001221/0.6011, allocations: 18 kB / 0.8071 GB, free: 60.62 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.6011, allocations: 46.25 kB / 0.8072 GB, free: 60.57 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=146): time 3.236e-06/0.6011, allocations: 0 / 0.8072 GB, free: 60.57 MB / 0.5606 GB Notification: Performance of matching and sorting (n=251): time 0.2846/0.8857, allocations: 77 MB / 0.8824 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/0.8858, allocations: 85.39 kB / 0.8824 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/0.8885, allocations: 1.666 MB / 0.8841 GB, free: 11.37 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0006685/0.8892, allocations: 69.36 kB / 0.8841 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.8904, allocations: 1.743 MB / 0.8858 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008753/0.8913, allocations: 0.8612 MB / 0.8867 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001049/0.8923, allocations: 477.2 kB / 0.8871 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.8924, allocations: 305.1 kB / 0.8874 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003582/0.896, allocations: 2.738 MB / 0.8901 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003927/0.9, allocations: 3.324 MB / 0.8933 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008011/0.908, allocations: 6.398 MB / 0.8996 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.569e-05/0.908, allocations: 4 kB / 0.8996 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03298/0.941, allocations: 14.68 MB / 0.9139 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.9411, allocations: 12 kB / 0.9139 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.736e-05/0.9411, allocations: 16 kB / 0.914 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02983/0.971, allocations: 9.3 MB / 0.923 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.9725, allocations: 295.5 kB / 0.9233 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08156/1.054, allocations: 52.38 MB / 0.9745 GB, free: 13.37 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003293/1.057, allocations: 227.7 kB / 0.9747 GB, free: 13.14 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005274/1.058, allocations: 100 kB / 0.9748 GB, free: 13.05 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003076/1.061, allocations: 1.583 MB / 0.9763 GB, free: 11.45 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007314/1.062, allocations: 241.1 kB / 0.9766 GB, free: 11.21 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03303/1.095, allocations: 14.76 MB / 0.991 GB, free: 12.4 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.054e-05/1.095, allocations: 24 kB / 0.991 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001453/1.095, allocations: 48 kB / 0.991 GB, free: 12.33 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.337e-05/1.095, allocations: 15.95 kB / 0.9911 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04366/1.139, allocations: 20.52 MB / 1.011 GB, free: 7.609 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.64e-05/1.139, allocations: 8 kB / 1.011 GB, free: 7.602 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008333/1.14, allocations: 159.7 kB / 1.011 GB, free: 7.445 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02919/1.169, allocations: 9.067 MB / 1.02 GB, free: 14.35 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005603/1.17, allocations: 51.94 kB / 1.02 GB, free: 14.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3656/1.535, allocations: 51.95 MB / 1.071 GB, free: 237.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/1.535, allocations: 12.91 kB / 1.071 GB, free: 237.4 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03173/1.567, allocations: 14.36 MB / 1.085 GB, free: 233.4 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/1.569, allocations: 0.8518 MB / 1.086 GB, free: 233.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004898/1.569, allocations: 51.69 kB / 1.086 GB, free: 233.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002134/1.572, allocations: 209.2 kB / 1.086 GB, free: 233 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001274/1.573, allocations: 239.2 kB / 1.086 GB, free: 233 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/1.573, allocations: 67.38 kB / 1.086 GB, free: 233 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001234/1.574, allocations: 1.123 MB / 1.087 GB, free: 232.5 MB / 0.7325 GB Notification: Performance of sort global known variables: time 6.02e-07/1.574, allocations: 3.609 kB / 1.087 GB, free: 232.5 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003833/1.578, allocations: 1.622 MB / 1.089 GB, free: 232.4 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02813/1.606, allocations: 14.97 MB / 1.104 GB, free: 223.9 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02142/1.628, allocations: 11.34 MB / 1.115 GB, free: 213.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/1.628, allocations: 0 / 1.115 GB, free: 213.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01645/1.644, allocations: 7.308 MB / 1.122 GB, free: 206.3 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002759/1.647, allocations: 0.551 MB / 1.122 GB, free: 205.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08446/1.731, allocations: 53.36 MB / 1.174 GB, free: 150.3 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002686/1.734, allocations: 3.219 MB / 1.178 GB, free: 147 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001006/1.735, allocations: 394 kB / 1.178 GB, free: 146.6 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001107/1.736, allocations: 1.472 MB / 1.179 GB, free: 145.1 MB / 0.7325 GB Notification: Performance of SimCode: time 1.272e-06/1.736, allocations: 0 / 1.179 GB, free: 145.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1496/1.886, allocations: 119.5 MB / 1.296 GB, free: 26.26 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/12.41, allocations: 8.25 kB / 1.296 GB, free: 26.25 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1)