Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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_L_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_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.005305/0.005305, 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.001258/0.001258, 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.213/1.213, 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.002049/0.002049, allocations: 294.1 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8779/0.8779, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 91.86 kB / 0.681 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3737/0.3753, allocations: 86.98 MB / 0.7659 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03638/0.4118, allocations: 34.82 MB / 0.7999 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0168/0.4286, allocations: 11.5 MB / 0.8112 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002649/0.4313, allocations: 159.2 kB / 0.8113 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.009808/0.4411, allocations: 4.249 MB / 0.8155 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005746/0.4469, allocations: 2.092 MB / 0.8175 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006218/0.4532, allocations: 2.421 MB / 0.8199 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.009072/0.4622, allocations: 8.471 MB / 0.8281 GB, free: 4.078 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01394/0.4762, allocations: 11.12 MB / 0.839 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005321/0.4816, allocations: 3.798 MB / 0.8427 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006045/0.4876, allocations: 4.187 MB / 0.8468 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002183/0.4898, allocations: 0.7773 MB / 0.8476 GB, free: 52 kB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005126/0.495, allocations: 2.032 MB / 0.8495 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.004527/0.4995, allocations: 3.057 MB / 0.8525 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.006889/0.5065, allocations: 3.396 MB / 0.8558 GB, free: 7.543 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.5206, allocations: 12.02 MB / 0.8676 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.5207, allocations: 4 kB / 0.8676 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.824e-06/0.5207, allocations: 0 / 0.8676 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0003362/0.521, allocations: 0 / 0.8676 GB, free: 11.49 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01502/0.5361, allocations: 5.942 MB / 0.8734 GB, free: 5.465 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.5361, allocations: 8.031 kB / 0.8734 GB, free: 5.457 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002142/0.5383, allocations: 0.8051 MB / 0.8742 GB, free: 4.641 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006578/0.5448, allocations: 1.086 MB / 0.8752 GB, free: 3.551 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007636/0.5525, allocations: 3.479 MB / 0.8786 GB, free: 16 kB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003618/0.5529, allocations: 419.5 kB / 0.879 GB, free: 15.6 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001628/0.5545, allocations: 0.5315 MB / 0.8796 GB, free: 15.07 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0169/0.5715, allocations: 9.087 MB / 0.8884 GB, free: 5.668 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002205/0.5717, allocations: 31.72 kB / 0.8885 GB, free: 5.637 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00124/0.573, allocations: 240 kB / 0.8887 GB, free: 5.402 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003306/0.5733, allocations: 342.8 kB / 0.889 GB, free: 5.066 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01162/0.5849, allocations: 6.83 MB / 0.8957 GB, free: 14.23 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0399/0.6249, allocations: 39.85 MB / 0.9346 GB, free: 2.66 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003868/0.6288, allocations: 3.118 MB / 0.9376 GB, free: 15.4 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002941/0.6317, allocations: 1.978 MB / 0.9396 GB, free: 13.43 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/0.6319, allocations: 18 kB / 0.9396 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.632, allocations: 56.55 kB / 0.9397 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=179): time 4.228e-06/0.632, allocations: 4 kB / 0.9397 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=182): time 0.02345/0.6554, allocations: 10.05 MB / 0.9495 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/0.6555, allocations: 73.39 kB / 0.9495 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/0.6578, allocations: 1.519 MB / 0.951 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001899/0.658, allocations: 53.7 kB / 0.9511 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001342/0.6593, allocations: 2.331 MB / 0.9533 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000668/0.66, allocations: 0.6622 MB / 0.954 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007031/0.6607, allocations: 416.1 kB / 0.9544 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.6608, allocations: 305.1 kB / 0.9547 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/0.6624, allocations: 1.179 MB / 0.9558 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/0.6644, allocations: 1.885 MB / 0.9577 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003869/0.6683, allocations: 3.371 MB / 0.961 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.635e-05/0.6683, allocations: 4 kB / 0.961 GB, free: 6.691 MB / 0.7325 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.007381/0.6757, allocations: 4.586 MB / 0.9655 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.6758, allocations: 18.81 kB / 0.9655 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.317e-05/0.6758, allocations: 24 kB / 0.9655 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003637/0.6795, allocations: 1.583 MB / 0.967 GB, free: 464 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.6808, allocations: 355.3 kB / 0.9674 GB, free: 108 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3352/1.016, allocations: 18.6 MB / 0.9855 GB, free: 172.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/1.018, allocations: 117.3 kB / 0.9856 GB, free: 172.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/1.018, allocations: 102.3 kB / 0.9857 GB, free: 172.1 MB / 0.7325 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 (177): * Single equations (assignments): 173 * 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002132/1.02, allocations: 1.889 MB / 0.9876 GB, free: 171.3 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003158/1.02, allocations: 239.1 kB / 0.9878 GB, free: 171.3 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005443/1.026, allocations: 4.102 MB / 0.9918 GB, free: 169.6 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/1.026, allocations: 19.03 kB / 0.9918 GB, free: 169.6 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/1.026, allocations: 14.16 kB / 0.9919 GB, free: 169.6 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/1.026, allocations: 9.578 kB / 0.9919 GB, free: 169.6 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/1.037, allocations: 9.456 MB / 1.001 GB, free: 165.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/1.037, allocations: 6.625 kB / 1.001 GB, free: 165.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007275/1.038, allocations: 182.8 kB / 1.001 GB, free: 165.2 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002763/1.041, allocations: 1.352 MB / 1.003 GB, free: 163.8 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.51e-05/1.041, allocations: 43.98 kB / 1.003 GB, free: 163.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/1.056, allocations: 17.37 MB / 1.02 GB, free: 146.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.056, allocations: 4 kB / 1.02 GB, free: 146.1 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005034/1.061, allocations: 4.082 MB / 1.024 GB, free: 142 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009165/1.062, allocations: 0.5447 MB / 1.024 GB, free: 141.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/1.062, allocations: 36 kB / 1.024 GB, free: 141.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008435/1.063, allocations: 83.89 kB / 1.024 GB, free: 141.3 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003046/1.063, allocations: 173.5 kB / 1.024 GB, free: 141.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.552e-05/1.063, allocations: 48 kB / 1.024 GB, free: 141.1 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0009592/1.064, allocations: 1.001 MB / 1.025 GB, free: 140.1 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/1.064, allocations: 0 / 1.025 GB, free: 140.1 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002478/1.067, allocations: 0.9844 MB / 1.026 GB, free: 139.1 MB / 0.7325 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005002/1.072, allocations: 4.673 MB / 1.031 GB, free: 134.3 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00518/1.077, allocations: 4.315 MB / 1.035 GB, free: 130 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.077, allocations: 0 / 1.035 GB, free: 130 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003192/1.08, allocations: 2.677 MB / 1.038 GB, free: 127.2 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/1.083, allocations: 0.7838 MB / 1.039 GB, free: 126.5 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02927/1.112, allocations: 26.99 MB / 1.065 GB, free: 98.49 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002735/1.115, allocations: 3.58 MB / 1.068 GB, free: 94.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00107/1.116, allocations: 459.9 kB / 1.069 GB, free: 94.42 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.117, allocations: 1.788 MB / 1.071 GB, free: 92.63 MB / 0.7325 GB Notification: Performance of SimCode: time 1.212e-06/1.117, allocations: 0 / 1.071 GB, free: 92.63 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09665/1.214, allocations: 73.96 MB / 1.143 GB, free: 19.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/13.58, allocations: 17.52 kB / 1.143 GB, free: 19.37 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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_L_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1)