Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.001177/0.001176, 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.001259/0.001259, allocations: 196.7 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.378/1.378, 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.002246/0.002246, allocations: 287 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9578/0.9578, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 99.45 kB / 0.5954 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1346, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03945/0.1741, allocations: 37.95 MB / 0.7174 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01801/0.1921, allocations: 10.98 MB / 0.7281 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004126/0.1963, allocations: 155.3 kB / 0.7282 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.01132/0.2076, allocations: 4.354 MB / 0.7325 GB, free: 11 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005968/0.2136, allocations: 2.223 MB / 0.7347 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005382/0.219, allocations: 2.169 MB / 0.7368 GB, free: 6.598 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0102/0.2292, allocations: 9.288 MB / 0.7458 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01762/0.2469, allocations: 11.35 MB / 0.7569 GB, free: 1.82 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006379/0.2533, allocations: 3.985 MB / 0.7608 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006859/0.2602, allocations: 4.502 MB / 0.7652 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.002421/0.2627, allocations: 0.8242 MB / 0.766 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004716/0.2674, allocations: 1.588 MB / 0.7676 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.004863/0.2723, allocations: 3.15 MB / 0.7706 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.006583/0.2789, allocations: 3.653 MB / 0.7742 GB, free: 72 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.5719/0.8508, allocations: 12.23 MB / 0.7862 GB, free: 35.09 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.8509, allocations: 5.234 kB / 0.7862 GB, free: 35.09 MB / 0.5607 GB Notification: Performance of FrontEnd: time 2.484e-06/0.8509, allocations: 1.062 kB / 0.7862 GB, free: 35.09 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 0.0004361/0.8513, allocations: 0.875 kB / 0.7862 GB, free: 35.09 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01913/0.8705, allocations: 6.313 MB / 0.7923 GB, free: 32.91 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.8705, allocations: 13.34 kB / 0.7923 GB, free: 32.9 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002149/0.8727, allocations: 0.8282 MB / 0.7931 GB, free: 32.83 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005689/0.8784, allocations: 1.067 MB / 0.7942 GB, free: 32.51 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006543/0.885, allocations: 3.421 MB / 0.7975 GB, free: 31.8 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002767/0.8853, allocations: 426.3 kB / 0.7979 GB, free: 31.79 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001633/0.8869, allocations: 0.5459 MB / 0.7985 GB, free: 31.79 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02056/0.9075, allocations: 9.383 MB / 0.8076 GB, free: 30.68 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000143/0.9077, allocations: 16.28 kB / 0.8076 GB, free: 30.68 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000776/0.9084, allocations: 248.4 kB / 0.8079 GB, free: 30.68 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005708/0.909, allocations: 418.4 kB / 0.8083 GB, free: 30.61 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01333/0.9224, allocations: 7.131 MB / 0.8152 GB, free: 28.76 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03722/0.9596, allocations: 41.31 MB / 0.8556 GB, free: 7.305 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004138/0.9638, allocations: 3.097 MB / 0.8586 GB, free: 5.723 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002577/0.9664, allocations: 2.142 MB / 0.8607 GB, free: 4.617 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 9.734e-05/0.9665, allocations: 23.81 kB / 0.8607 GB, free: 4.617 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.662e-05/0.9665, allocations: 63.69 kB / 0.8608 GB, free: 4.559 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=209): time 3.737e-06/0.9666, allocations: 0 / 0.8608 GB, free: 4.559 MB / 0.5763 GB Notification: Performance of matching and sorting (n=212): time 0.02549/0.9921, allocations: 10.56 MB / 0.8711 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.9922, allocations: 80.81 kB / 0.8712 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004018/0.9962, allocations: 1.998 MB / 0.8731 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0003136/0.9965, allocations: 65.7 kB / 0.8732 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001757/0.9983, allocations: 2.402 MB / 0.8755 GB, free: 9.66 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008442/0.9991, allocations: 0.7327 MB / 0.8762 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/1, allocations: 481.1 kB / 0.8767 GB, free: 8.457 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.575e-05/1, allocations: 301.1 kB / 0.877 GB, free: 8.16 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/1.002, allocations: 1.376 MB / 0.8783 GB, free: 6.781 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00249/1.005, allocations: 2.108 MB / 0.8804 GB, free: 4.367 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00483/1.01, allocations: 3.77 MB / 0.8841 GB, free: 388 kB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-05/1.01, allocations: 4 kB / 0.8841 GB, free: 384 kB / 0.5919 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.00818/1.018, allocations: 5.067 MB / 0.889 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/1.018, allocations: 16 kB / 0.889 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/1.018, allocations: 23.98 kB / 0.8891 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003495/1.022, allocations: 1.602 MB / 0.8906 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/1.023, allocations: 452.6 kB / 0.8911 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02246/1.046, allocations: 18.59 MB / 0.9092 GB, free: 6.324 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/1.048, allocations: 139.9 kB / 0.9093 GB, free: 6.188 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004438/1.049, allocations: 116 kB / 0.9095 GB, free: 6.074 MB / 0.6232 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003598/1.052, allocations: 1.932 MB / 0.9113 GB, free: 4.164 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006827/1.053, allocations: 292.7 kB / 0.9116 GB, free: 3.875 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007228/1.06, allocations: 4.45 MB / 0.916 GB, free: 15.45 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/1.06, allocations: 20 kB / 0.916 GB, free: 15.43 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.565e-05/1.06, allocations: 16 kB / 0.916 GB, free: 15.42 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/1.06, allocations: 7.969 kB / 0.916 GB, free: 15.41 MB / 0.6388 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01739/1.078, allocations: 9.68 MB / 0.9255 GB, free: 5.719 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/1.078, allocations: 4 kB / 0.9255 GB, free: 5.715 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/1.079, allocations: 230.6 kB / 0.9257 GB, free: 5.5 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003336/1.082, allocations: 1.435 MB / 0.9271 GB, free: 4.059 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000212/1.082, allocations: 40 kB / 0.9271 GB, free: 4.02 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02328/1.106, allocations: 18.58 MB / 0.9453 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/1.106, allocations: 6.625 kB / 0.9453 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007664/1.113, allocations: 4.552 MB / 0.9497 GB, free: 12.36 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/1.115, allocations: 0.6304 MB / 0.9503 GB, free: 11.7 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007603/1.116, allocations: 44.25 kB / 0.9504 GB, free: 11.66 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001802/1.118, allocations: 115.9 kB / 0.9505 GB, free: 11.55 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000544/1.118, allocations: 181.2 kB / 0.9507 GB, free: 11.37 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/1.118, allocations: 56 kB / 0.9507 GB, free: 11.32 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002155/1.121, allocations: 1.319 MB / 0.952 GB, free: 9.988 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.71e-07/1.121, allocations: 0 / 0.952 GB, free: 9.988 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.004141/1.125, allocations: 1.141 MB / 0.9531 GB, free: 8.848 MB / 0.67 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00791/1.133, allocations: 5.159 MB / 0.9582 GB, free: 3.664 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01088/1.144, allocations: 5.926 MB / 0.9639 GB, free: 13.79 MB / 0.6857 GB Notification: Performance of simCode: created event and clocks part: time 1.815e-05/1.144, allocations: 0 / 0.9639 GB, free: 13.79 MB / 0.6857 GB Notification: Performance of simCode: created simulation system equations: time 0.005088/1.149, allocations: 2.914 MB / 0.9668 GB, free: 10.86 MB / 0.6857 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005176/1.154, allocations: 0.8913 MB / 0.9677 GB, free: 10 MB / 0.6857 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06034/1.214, allocations: 33.64 MB / 1.001 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006272/1.221, allocations: 3.69 MB / 1.004 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002488/1.223, allocations: 0.5556 MB / 1.005 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003312/1.227, allocations: 1.948 MB / 1.007 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of SimCode: time 9.52e-07/1.227, allocations: 0 / 1.007 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5138/1.74, allocations: 85.72 MB / 1.09 GB, free: 274.3 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/12.71, allocations: 9.516 kB / 1.09 GB, free: 274.3 MB / 0.7638 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1)