Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.0009157/0.0009158, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005523/0.005523, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.295/1.295, allocations: 223.2 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001869/0.001869, allocations: 267.1 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9218/0.9218, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004004/0.0004004, allocations: 11.62 kB / 0.5988 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1389, allocations: 88.56 MB / 0.6853 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.005285/0.1442, allocations: 5.135 MB / 0.6903 GB, free: 9.797 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.1475, allocations: 2.61 MB / 0.6928 GB, free: 7.188 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001914/0.1477, allocations: 19.88 kB / 0.6928 GB, free: 7.168 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.1479, allocations: 103.1 kB / 0.6929 GB, free: 7.066 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006641/0.1486, allocations: 390 kB / 0.6933 GB, free: 6.688 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006682/0.1493, allocations: 372.1 kB / 0.6937 GB, free: 6.328 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009786/0.1502, allocations: 1.256 MB / 0.6949 GB, free: 5.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001094/0.1513, allocations: 0.789 MB / 0.6957 GB, free: 4.25 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003192/0.1517, allocations: 322.6 kB / 0.696 GB, free: 3.934 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004285/0.1521, allocations: 386.4 kB / 0.6963 GB, free: 3.555 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.132e-05/0.1522, allocations: 28 kB / 0.6964 GB, free: 3.527 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005173/0.1527, allocations: 423.1 kB / 0.6968 GB, free: 3.113 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.1529, allocations: 215.3 kB / 0.697 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002572/0.1532, allocations: 351.8 kB / 0.6973 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007672/0.1539, allocations: 0.9576 MB / 0.6982 GB, free: 1.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.1539, allocations: 0 / 0.6982 GB, free: 1.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1539, allocations: 0 / 0.6982 GB, free: 1.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.154, allocations: 0 / 0.6982 GB, free: 1.59 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001139/0.1551, allocations: 0.853 MB / 0.6991 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1551, allocations: 8.031 kB / 0.6991 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.978e-05/0.1552, allocations: 102.7 kB / 0.6992 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/0.1565, allocations: 191.9 kB / 0.6994 GB, free: 392 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005902/0.1571, allocations: 498.5 kB / 0.6998 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.1571, allocations: 41.36 kB / 0.6999 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.1573, allocations: 64.44 kB / 0.6999 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.1583, allocations: 0.8284 MB / 0.7007 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.1584, allocations: 3.938 kB / 0.7007 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.193e-05/0.1584, allocations: 23.98 kB / 0.7008 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001731/0.1586, allocations: 68.95 kB / 0.7008 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008024/0.1594, allocations: 0.5658 MB / 0.7014 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003705/0.1631, allocations: 4.596 MB / 0.7059 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004013/0.1635, allocations: 299.3 kB / 0.7062 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.1638, allocations: 233.2 kB / 0.7064 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.1638, allocations: 4.281 kB / 0.7064 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.1639, allocations: 30.84 kB / 0.7064 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.362e-06/0.1639, allocations: 0 / 0.7064 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.004909/0.1688, allocations: 2.631 MB / 0.709 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.1688, allocations: 63.41 kB / 0.709 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004065/0.1692, allocations: 465.9 kB / 0.7095 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.1693, allocations: 33.7 kB / 0.7095 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.1695, allocations: 343.6 kB / 0.7099 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.491e-05/0.1696, allocations: 142 kB / 0.71 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.751e-05/0.1696, allocations: 53.69 kB / 0.71 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.1698, allocations: 362.7 kB / 0.7104 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/0.1701, allocations: 244.9 kB / 0.7106 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004073/0.1705, allocations: 410.5 kB / 0.711 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007563/0.1713, allocations: 0.674 MB / 0.7117 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1713, allocations: 4 kB / 0.7117 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001468/0.1728, allocations: 0.9137 MB / 0.7126 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.1728, allocations: 12.09 kB / 0.7126 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1728, allocations: 4 kB / 0.7126 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006959/0.1735, allocations: 230.3 kB / 0.7128 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004548/0.174, allocations: 115.8 kB / 0.7129 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004153/0.1781, allocations: 4.93 MB / 0.7177 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.1785, allocations: 32.16 kB / 0.7178 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.655e-05/0.1785, allocations: 24 kB / 0.7178 GB, free: 12.28 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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 {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002287/0.1788, allocations: 233.6 kB / 0.718 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.249e-05/0.1789, allocations: 55.34 kB / 0.7181 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.1802, allocations: 0.7695 MB / 0.7188 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1803, allocations: 4 kB / 0.7188 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1803, allocations: 4 kB / 0.7188 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1803, allocations: 4.125 kB / 0.7188 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.1824, allocations: 1.505 MB / 0.7203 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.1824, allocations: 3.984 kB / 0.7203 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003376/0.1827, allocations: 67.88 kB / 0.7204 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005956/0.1833, allocations: 202.6 kB / 0.7206 GB, free: 9.32 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.1834, allocations: 12 kB / 0.7206 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00392/0.1873, allocations: 4.873 MB / 0.7253 GB, free: 4.039 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.1873, allocations: 7.938 kB / 0.7253 GB, free: 4.031 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.1888, allocations: 1.127 MB / 0.7264 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.189, allocations: 172.4 kB / 0.7266 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.194e-05/0.1891, allocations: 15.98 kB / 0.7266 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.1894, allocations: 23.97 kB / 0.7266 GB, free: 2.629 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/0.1895, allocations: 43.89 kB / 0.7267 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.1895, allocations: 12 kB / 0.7267 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002796/0.1898, allocations: 314.9 kB / 0.727 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1898, allocations: 0 / 0.727 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005266/0.1903, allocations: 164 kB / 0.7271 GB, free: 2.109 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001776/0.1921, allocations: 1.708 MB / 0.7288 GB, free: 352 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001323/0.1934, allocations: 1.008 MB / 0.7298 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1934, allocations: 0 / 0.7298 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008402/0.1943, allocations: 0.676 MB / 0.7305 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009072/0.1952, allocations: 172.7 kB / 0.7306 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006948/0.2022, allocations: 5.994 MB / 0.7365 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004425/0.2026, allocations: 0.9494 MB / 0.7374 GB, free: 7.145 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003174/0.203, allocations: 113 kB / 0.7375 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.2032, allocations: 215.4 kB / 0.7377 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of SimCode: time 2.2e-07/0.2032, allocations: 0 / 0.7377 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3481/0.5513, allocations: 13.37 MB / 0.7508 GB, free: 9.797 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/0.5515, allocations: 256.5 kB / 0.751 GB, free: 9.539 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.445, allocations: 0 / 0.751 GB, free: 9.539 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)