Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_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.001372/0.001372, 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.001436/0.001436, allocations: 193.9 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.312/1.312, 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.002095/0.002095, allocations: 275 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.9778/0.9778, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 100.3 kB / 0.5954 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1468, allocations: 86.98 MB / 0.6803 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03497/0.1818, allocations: 33.3 MB / 0.7128 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02187/0.2037, allocations: 14.84 MB / 0.7273 GB, free: 272 kB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003362/0.2071, allocations: 151.2 kB / 0.7275 GB, free: 120 kB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.009197/0.2164, allocations: 3.654 MB / 0.731 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.007817/0.2242, allocations: 2.893 MB / 0.7338 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005726/0.2299, allocations: 2.323 MB / 0.7361 GB, free: 7.223 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01016/0.2401, allocations: 8.811 MB / 0.7447 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01338/0.2535, allocations: 9.632 MB / 0.7541 GB, free: 4.629 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006547/0.2601, allocations: 3.938 MB / 0.758 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00655/0.2667, allocations: 4.042 MB / 0.7619 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.002293/0.269, allocations: 0.7148 MB / 0.7626 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004779/0.2738, allocations: 1.713 MB / 0.7643 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.00441/0.2782, allocations: 2.834 MB / 0.7671 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.006181/0.2844, allocations: 3.392 MB / 0.7704 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.5514/0.8359, allocations: 11.11 MB / 0.7812 GB, free: 36.89 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.8359, allocations: 1.5 kB / 0.7812 GB, free: 36.89 MB / 0.5607 GB Notification: Performance of FrontEnd: time 3.397e-06/0.8359, allocations: 0 / 0.7812 GB, free: 36.89 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 0.0004399/0.8364, allocations: 0.7656 kB / 0.7812 GB, free: 36.89 MB / 0.5607 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.02237/0.8587, allocations: 5.988 MB / 0.7871 GB, free: 34.73 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.8588, allocations: 6.781 kB / 0.7871 GB, free: 34.73 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002846/0.8617, allocations: 0.7276 MB / 0.7878 GB, free: 34.66 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007857/0.8695, allocations: 1.135 MB / 0.7889 GB, free: 34.36 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00753/0.8771, allocations: 3.326 MB / 0.7921 GB, free: 33.61 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002946/0.8774, allocations: 372.9 kB / 0.7925 GB, free: 33.6 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001931/0.8793, allocations: 494.1 kB / 0.793 GB, free: 33.6 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01807/0.8974, allocations: 8.009 MB / 0.8008 GB, free: 32.75 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00019/0.8977, allocations: 23.84 kB / 0.8008 GB, free: 32.74 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001235/0.8989, allocations: 218.8 kB / 0.801 GB, free: 32.74 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001517/0.9004, allocations: 443.1 kB / 0.8014 GB, free: 32.73 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01737/0.9178, allocations: 6.082 MB / 0.8074 GB, free: 32.68 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03808/0.9559, allocations: 35.15 MB / 0.8417 GB, free: 2.527 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/0.9582, allocations: 2.028 MB / 0.8437 GB, free: 1.461 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/0.9602, allocations: 1.861 MB / 0.8455 GB, free: 0.5 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-05/0.9603, allocations: 17.62 kB / 0.8455 GB, free: 0.5 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.9603, allocations: 60.47 kB / 0.8456 GB, free: 452 kB / 0.5607 GB Notification: Performance of pre-optimization done (n=171): time 3.868e-06/0.9604, allocations: 0 / 0.8456 GB, free: 452 kB / 0.5607 GB Notification: Performance of matching and sorting (n=276): time 0.1487/1.109, allocations: 38.88 MB / 0.8836 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/1.109, allocations: 81.58 kB / 0.8836 GB, free: 1.441 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003464/1.113, allocations: 2.283 MB / 0.8859 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0002692/1.113, allocations: 73.7 kB / 0.8859 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001361/1.114, allocations: 2.28 MB / 0.8882 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007882/1.115, allocations: 0.9264 MB / 0.8891 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/1.116, allocations: 0.5061 MB / 0.8896 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.157e-05/1.116, allocations: 305.1 kB / 0.8898 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/1.119, allocations: 1.973 MB / 0.8918 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003149/1.122, allocations: 2.598 MB / 0.8943 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006227/1.128, allocations: 4.938 MB / 0.8991 GB, free: 1.082 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/1.128, allocations: 4 kB / 0.8991 GB, free: 1.078 MB / 0.6075 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01486/1.143, allocations: 7.76 MB / 0.9067 GB, free: 9.453 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 4.36e-05/1.143, allocations: 13.72 kB / 0.9067 GB, free: 9.441 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.752e-05/1.143, allocations: 20 kB / 0.9067 GB, free: 9.422 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009761/1.153, allocations: 3.241 MB / 0.9099 GB, free: 6.172 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/1.155, allocations: 400 kB / 0.9103 GB, free: 5.805 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04561/1.2, allocations: 33.9 MB / 0.9434 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003179/1.204, allocations: 167.8 kB / 0.9436 GB, free: 2.992 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000441/1.204, allocations: 108 kB / 0.9437 GB, free: 2.887 MB / 0.6544 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 (202): * Single equations (assignments): 196 * 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 {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003615/1.208, allocations: 1.8 MB / 0.9454 GB, free: 1.105 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009359/1.209, allocations: 324.2 kB / 0.9457 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.224, allocations: 7.359 MB / 0.9529 GB, free: 9.457 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.501e-05/1.224, allocations: 24 kB / 0.9529 GB, free: 9.434 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.402e-05/1.224, allocations: 32 kB / 0.953 GB, free: 9.402 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.434e-05/1.224, allocations: 15.95 kB / 0.953 GB, free: 9.387 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02449/1.249, allocations: 12.92 MB / 0.9656 GB, free: 12.48 MB / 0.6857 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/1.249, allocations: 4.844 kB / 0.9656 GB, free: 12.48 MB / 0.6857 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009566/1.25, allocations: 236.9 kB / 0.9658 GB, free: 12.26 MB / 0.6857 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008384/1.258, allocations: 2.877 MB / 0.9686 GB, free: 9.371 MB / 0.6857 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003662/1.258, allocations: 52 kB / 0.9687 GB, free: 9.32 MB / 0.6857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04317/1.302, allocations: 32.69 MB / 1.001 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/1.302, allocations: 15.47 kB / 1.001 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/1.314, allocations: 6.886 MB / 1.007 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00192/1.316, allocations: 0.7782 MB / 1.008 GB, free: 48 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001123/1.317, allocations: 56.05 kB / 1.008 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002354/1.32, allocations: 171.7 kB / 1.008 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008809/1.321, allocations: 252.8 kB / 1.009 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002335/1.321, allocations: 76 kB / 1.009 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002961/1.324, allocations: 1.525 MB / 1.01 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.01e-07/1.324, allocations: 1.969 kB / 1.01 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004674/1.328, allocations: 1.371 MB / 1.011 GB, free: 12.61 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 (105): * Single equations (assignments): 99 * 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 {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01251/1.341, allocations: 7.51 MB / 1.019 GB, free: 5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01492/1.356, allocations: 8.383 MB / 1.027 GB, free: 12.61 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/1.356, allocations: 0 / 1.027 GB, free: 12.61 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.007608/1.364, allocations: 4.407 MB / 1.031 GB, free: 8.156 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005274/1.369, allocations: 1.128 MB / 1.032 GB, free: 7.094 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3187/1.688, allocations: 43.84 MB / 1.075 GB, free: 267.2 MB / 0.7638 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00369/1.691, allocations: 3.642 MB / 1.079 GB, free: 265.9 MB / 0.7638 GB Notification: Performance of simCode: alias equations: time 0.002036/1.693, allocations: 0.5576 MB / 1.079 GB, free: 265.9 MB / 0.7638 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00188/1.695, allocations: 1.972 MB / 1.081 GB, free: 264.2 MB / 0.7638 GB Notification: Performance of SimCode: time 1.021e-06/1.695, allocations: 3.562 kB / 1.081 GB, free: 264.2 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1456/1.841, allocations: 112.7 MB / 1.191 GB, free: 172.8 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/13.04, allocations: 9.016 kB / 1.191 GB, free: 172.8 MB / 0.7638 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1)