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.00474/0.004739, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.0009751/0.0009752, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.216/1.216, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001983/0.001984, allocations: 289.3 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8692/0.8692, allocations: 169.3 MB / 0.4983 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 95.83 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3737/0.3753, allocations: 86.98 MB / 0.7659 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02375/0.3991, allocations: 23.4 MB / 0.7888 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01041/0.4096, allocations: 6.488 MB / 0.7951 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001887/0.4115, allocations: 95.56 kB / 0.7952 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003831/0.4154, allocations: 1.492 MB / 0.7967 GB, free: 4.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004217/0.4196, allocations: 1.933 MB / 0.7986 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003113/0.4227, allocations: 1.467 MB / 0.8 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006451/0.4292, allocations: 6.919 MB / 0.8067 GB, free: 9.941 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008218/0.4374, allocations: 6.929 MB / 0.8135 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003884/0.4413, allocations: 2.882 MB / 0.8163 GB, free: 28 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004646/0.446, allocations: 3.478 MB / 0.8197 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001446/0.4474, allocations: 0.5273 MB / 0.8202 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003106/0.4505, allocations: 1.178 MB / 0.8214 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.003061/0.4536, allocations: 2.46 MB / 0.8238 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003107/0.4567, allocations: 2.536 MB / 0.8263 GB, free: 5.82 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007464/0.4642, allocations: 8.536 MB / 0.8346 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.4643, allocations: 0 / 0.8346 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4643, allocations: 0 / 0.8346 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001793/0.4644, allocations: 0 / 0.8346 GB, free: 13.26 MB / 0.6075 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.007626/0.4721, allocations: 4.553 MB / 0.839 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.4721, allocations: 16.03 kB / 0.8391 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006888/0.4728, allocations: 0.5753 MB / 0.8396 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00803/0.4809, allocations: 1.695 MB / 0.8413 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005442/0.4863, allocations: 2.717 MB / 0.8439 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.4865, allocations: 275.7 kB / 0.8442 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000693/0.4872, allocations: 360.3 kB / 0.8445 GB, free: 2.945 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/0.4984, allocations: 7.483 MB / 0.8518 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.268e-05/0.4985, allocations: 23.83 kB / 0.8519 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003985/0.4989, allocations: 155.9 kB / 0.852 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005236/0.4995, allocations: 487.3 kB / 0.8525 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008251/0.5077, allocations: 5.693 MB / 0.858 GB, free: 4.848 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03128/0.539, allocations: 31.54 MB / 0.8888 GB, free: 2.535 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/0.5416, allocations: 2.097 MB / 0.8909 GB, free: 436 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002587/0.5442, allocations: 2.174 MB / 0.893 GB, free: 14.25 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.5443, allocations: 13.31 kB / 0.893 GB, free: 14.23 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.5444, allocations: 55.86 kB / 0.8931 GB, free: 14.17 MB / 0.67 GB Notification: Performance of pre-optimization done (n=146): time 4.869e-06/0.5444, allocations: 4 kB / 0.8931 GB, free: 14.16 MB / 0.67 GB Notification: Performance of matching and sorting (n=251): time 0.2852/0.8295, allocations: 77.07 MB / 0.9684 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.8296, allocations: 85.28 kB / 0.9684 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2908/1.12, allocations: 1.665 MB / 0.9701 GB, free: 186.1 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0004285/1.121, allocations: 67.52 kB / 0.9701 GB, free: 186.1 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009645/1.122, allocations: 1.802 MB / 0.9719 GB, free: 185.6 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007367/1.123, allocations: 0.893 MB / 0.9728 GB, free: 185 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/1.124, allocations: 482 kB / 0.9732 GB, free: 184.8 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 3.529e-05/1.124, allocations: 302.6 kB / 0.9735 GB, free: 184.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003445/1.127, allocations: 2.732 MB / 0.9762 GB, free: 183.6 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003628/1.131, allocations: 3.332 MB / 0.9794 GB, free: 181.9 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006316/1.137, allocations: 6.4 MB / 0.9857 GB, free: 178.9 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/1.137, allocations: 7.406 kB / 0.9857 GB, free: 178.9 MB / 0.7325 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.02656/1.164, allocations: 14.69 MB / 1 GB, free: 174.2 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/1.164, allocations: 14.44 kB / 1 GB, free: 174.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/1.164, allocations: 19.92 kB / 1 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02459/1.188, allocations: 9.247 MB / 1.009 GB, free: 165 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/1.19, allocations: 295.5 kB / 1.009 GB, free: 164.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06058/1.25, allocations: 52.39 MB / 1.061 GB, free: 111.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/1.253, allocations: 223.7 kB / 1.061 GB, free: 111.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/1.253, allocations: 96 kB / 1.061 GB, free: 111.3 MB / 0.7325 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.001966/1.255, allocations: 1.599 MB / 1.062 GB, free: 109.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003935/1.255, allocations: 250.6 kB / 1.063 GB, free: 109.4 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02602/1.282, allocations: 14.76 MB / 1.077 GB, free: 94.62 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/1.282, allocations: 24 kB / 1.077 GB, free: 94.6 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-05/1.282, allocations: 44 kB / 1.077 GB, free: 94.55 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.653e-05/1.282, allocations: 15 kB / 1.077 GB, free: 94.54 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03323/1.315, allocations: 20.52 MB / 1.097 GB, free: 73.88 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/1.315, allocations: 8.844 kB / 1.097 GB, free: 73.87 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000648/1.316, allocations: 163.7 kB / 1.097 GB, free: 73.71 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02434/1.34, allocations: 9.004 MB / 1.106 GB, free: 64.68 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002384/1.34, allocations: 51.98 kB / 1.106 GB, free: 64.63 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05987/1.4, allocations: 51.98 MB / 1.157 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.309e-06/1.4, allocations: 11.94 kB / 1.157 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02634/1.426, allocations: 14.38 MB / 1.171 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002139/1.429, allocations: 0.8561 MB / 1.172 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004191/1.429, allocations: 51.98 kB / 1.172 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002007/1.431, allocations: 203.7 kB / 1.172 GB, free: 12.19 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001028/1.432, allocations: 241.5 kB / 1.172 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.432, allocations: 64 kB / 1.172 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.00134/1.434, allocations: 1.133 MB / 1.173 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.1e-07/1.434, allocations: 0 / 1.173 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003703/1.437, allocations: 1.613 MB / 1.175 GB, free: 9.129 MB / 0.7481 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.02921/1.467, allocations: 14.99 MB / 1.19 GB, free: 9.988 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.02125/1.488, allocations: 10.58 MB / 1.2 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/1.488, allocations: 0 / 1.2 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.01633/1.504, allocations: 7.32 MB / 1.207 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002718/1.507, allocations: 0.5639 MB / 1.208 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08696/1.594, allocations: 50.96 MB / 1.257 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003292/1.597, allocations: 3.231 MB / 1.261 GB, free: 168 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000948/1.598, allocations: 395.3 kB / 1.261 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/1.6, allocations: 1.46 MB / 1.262 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of SimCode: time 7.12e-07/1.6, allocations: 0 / 1.262 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4478/2.048, allocations: 120.9 MB / 1.38 GB, free: 232.5 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/15.38, allocations: 19.55 kB / 1.38 GB, free: 232.5 MB / 0.8575 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)