Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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.ACLine_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_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.001289/0.001289, 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.001086/0.001086, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, allocations: 282.8 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9109/0.9109, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 102.4 kB / 0.5954 GB, free: 27.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1481, allocations: 86.97 MB / 0.6803 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02179/0.1699, allocations: 20.22 MB / 0.7 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01024/0.1802, allocations: 6.442 MB / 0.7063 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001524/0.1817, allocations: 87.56 kB / 0.7064 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.005376/0.1871, allocations: 2.241 MB / 0.7086 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003271/0.1904, allocations: 1.177 MB / 0.7098 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003038/0.1934, allocations: 1.289 MB / 0.711 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005015/0.1985, allocations: 4.865 MB / 0.7158 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006085/0.2046, allocations: 5.626 MB / 0.7213 GB, free: 6.445 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00261/0.2072, allocations: 2.08 MB / 0.7233 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003138/0.2103, allocations: 2.344 MB / 0.7256 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0008374/0.2112, allocations: 428 kB / 0.726 GB, free: 1.59 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/0.2132, allocations: 0.9987 MB / 0.727 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001764/0.215, allocations: 1.668 MB / 0.7286 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003053/0.2181, allocations: 1.918 MB / 0.7305 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005373/0.2235, allocations: 6.478 MB / 0.7368 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2235, allocations: 3.984 kB / 0.7368 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2235, allocations: 0 / 0.7368 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.788e-05/0.2236, allocations: 0 / 0.7368 GB, free: 6.492 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.006289/0.2299, allocations: 3.45 MB / 0.7402 GB, free: 2.98 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.2299, allocations: 8.031 kB / 0.7402 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005403/0.2304, allocations: 454.6 kB / 0.7406 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003091/0.2335, allocations: 0.6487 MB / 0.7412 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002877/0.2364, allocations: 1.936 MB / 0.7431 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.2366, allocations: 226.2 kB / 0.7433 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004128/0.237, allocations: 296 kB / 0.7436 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007062/0.2441, allocations: 4.886 MB / 0.7484 GB, free: 10.27 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.094e-05/0.2442, allocations: 7.938 kB / 0.7484 GB, free: 10.26 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002796/0.2444, allocations: 132 kB / 0.7485 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003972/0.2449, allocations: 229.7 kB / 0.7488 GB, free: 9.906 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005738/0.2506, allocations: 3.754 MB / 0.7524 GB, free: 6.141 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2813/0.5319, allocations: 21.55 MB / 0.7735 GB, free: 84.69 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.5336, allocations: 1.309 MB / 0.7747 GB, free: 84.66 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001347/0.535, allocations: 1.049 MB / 0.7758 GB, free: 84.65 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 5.929e-05/0.5351, allocations: 13.48 kB / 0.7758 GB, free: 84.65 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.5351, allocations: 47.33 kB / 0.7758 GB, free: 84.61 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=107): time 3.687e-06/0.5351, allocations: 3.375 kB / 0.7758 GB, free: 84.61 MB / 0.5606 GB Notification: Performance of matching and sorting (n=138): time 0.02266/0.5578, allocations: 8.657 MB / 0.7843 GB, free: 82.89 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.5579, allocations: 65.72 kB / 0.7843 GB, free: 82.82 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.5599, allocations: 1.129 MB / 0.7855 GB, free: 82.38 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001989/0.5601, allocations: 47.7 kB / 0.7855 GB, free: 82.33 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008247/0.5609, allocations: 1.301 MB / 0.7868 GB, free: 81.34 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003885/0.5613, allocations: 477.4 kB / 0.7872 GB, free: 80.98 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005238/0.5618, allocations: 290.5 kB / 0.7875 GB, free: 80.85 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.63e-05/0.5619, allocations: 309.5 kB / 0.7878 GB, free: 80.55 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.5632, allocations: 0.9136 MB / 0.7887 GB, free: 80.21 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.5647, allocations: 1.322 MB / 0.79 GB, free: 79.38 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003027/0.5677, allocations: 2.428 MB / 0.7924 GB, free: 78 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.317e-06/0.5677, allocations: 7.344 kB / 0.7924 GB, free: 78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.007029/0.5748, allocations: 3.462 MB / 0.7957 GB, free: 76.63 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.463e-05/0.5749, allocations: 10.16 kB / 0.7957 GB, free: 76.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.1e-05/0.5749, allocations: 16.16 kB / 0.7958 GB, free: 76.63 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003052/0.578, allocations: 1.194 MB / 0.7969 GB, free: 76.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009328/0.5789, allocations: 259.7 kB / 0.7972 GB, free: 76.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/0.5929, allocations: 13.83 MB / 0.8107 GB, free: 66.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.5942, allocations: 95.56 kB / 0.8108 GB, free: 66.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.5944, allocations: 68.33 kB / 0.8108 GB, free: 66.74 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * 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 {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001337/0.5957, allocations: 1.116 MB / 0.8119 GB, free: 66.03 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.5959, allocations: 164.5 kB / 0.8121 GB, free: 65.95 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004464/0.6004, allocations: 3.172 MB / 0.8152 GB, free: 64.09 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.6004, allocations: 11.62 kB / 0.8152 GB, free: 64.09 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.6005, allocations: 15.28 kB / 0.8152 GB, free: 64.09 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.6005, allocations: 13.62 kB / 0.8152 GB, free: 64.08 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008188/0.6087, allocations: 6.248 MB / 0.8213 GB, free: 60.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.6087, allocations: 7.5 kB / 0.8213 GB, free: 60.31 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005159/0.6092, allocations: 148.8 kB / 0.8215 GB, free: 60.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002423/0.6117, allocations: 1.084 MB / 0.8225 GB, free: 59.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.598e-05/0.6118, allocations: 26.5 kB / 0.8226 GB, free: 59.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/0.624, allocations: 13.54 MB / 0.8358 GB, free: 45.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.6241, allocations: 15.94 kB / 0.8358 GB, free: 45.88 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004141/0.6282, allocations: 3.154 MB / 0.8389 GB, free: 42.63 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006612/0.6289, allocations: 427 kB / 0.8393 GB, free: 42.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.6291, allocations: 28 kB / 0.8393 GB, free: 42.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007336/0.6299, allocations: 83.89 kB / 0.8394 GB, free: 42.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003106/0.6302, allocations: 120.7 kB / 0.8395 GB, free: 41.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.33e-05/0.6302, allocations: 43.94 kB / 0.8395 GB, free: 41.93 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000765/0.631, allocations: 0.7671 MB / 0.8403 GB, free: 41.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/0.631, allocations: 0 / 0.8403 GB, free: 41.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001677/0.6327, allocations: 0.6562 MB / 0.8409 GB, free: 40.5 MB / 0.5606 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 (70): * Single equations (assignments): 67 * 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 {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004126/0.6368, allocations: 3.74 MB / 0.8446 GB, free: 36.67 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004532/0.6414, allocations: 3.638 MB / 0.8481 GB, free: 33 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.6414, allocations: 0 / 0.8481 GB, free: 33 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002278/0.6437, allocations: 1.953 MB / 0.85 GB, free: 31.02 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.6457, allocations: 0.5002 MB / 0.8505 GB, free: 30.57 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/0.6682, allocations: 20.09 MB / 0.8702 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001634/0.6699, allocations: 2.34 MB / 0.8724 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009632/0.6709, allocations: 352.9 kB / 0.8728 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007985/0.6717, allocations: 1.003 MB / 0.8738 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of SimCode: time 6.82e-07/0.6717, allocations: 0 / 0.8738 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08441/0.7561, allocations: 51.48 MB / 0.924 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.757/10.51, allocations: 26.98 kB / 0.9241 GB, free: 3.145 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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_ACLine_RL_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1)