Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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: translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.00121/0.00121, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001711/0.001711, allocations: 274.2 kB / 291.4 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9429/0.9429, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003907, allocations: 18.56 kB / 0.598 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1656, allocations: 88.55 MB / 0.6845 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.004613/0.1703, allocations: 3.847 MB / 0.6883 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004068/0.1744, allocations: 2.99 MB / 0.6912 GB, free: 8.586 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.1746, allocations: 11.94 kB / 0.6912 GB, free: 8.574 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005062/0.1751, allocations: 152.1 kB / 0.6913 GB, free: 8.426 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007338/0.1759, allocations: 318 kB / 0.6916 GB, free: 8.121 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.1763, allocations: 174.8 kB / 0.6918 GB, free: 7.953 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006712/0.177, allocations: 0.6617 MB / 0.6924 GB, free: 7.289 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001148/0.1782, allocations: 0.7254 MB / 0.6932 GB, free: 6.539 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002456/0.1784, allocations: 183.2 kB / 0.6933 GB, free: 6.359 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003406/0.1788, allocations: 247.1 kB / 0.6936 GB, free: 6.117 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.1788, allocations: 16 kB / 0.6936 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005012/0.1793, allocations: 235.7 kB / 0.6938 GB, free: 5.871 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.1795, allocations: 131.6 kB / 0.6939 GB, free: 5.742 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.952e-05/0.1796, allocations: 105.5 kB / 0.694 GB, free: 5.633 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006601/0.1802, allocations: 0.674 MB / 0.6947 GB, free: 4.957 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1803, allocations: 0 / 0.6947 GB, free: 4.957 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1803, allocations: 0 / 0.6947 GB, free: 4.957 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.1803, allocations: 0 / 0.6947 GB, free: 4.957 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00114/0.1814, allocations: 0.709 MB / 0.6954 GB, free: 4.199 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1815, allocations: 12.03 kB / 0.6954 GB, free: 4.188 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002633/0.1841, allocations: 0.6936 MB / 0.6961 GB, free: 3.492 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000724/0.1849, allocations: 466.6 kB / 0.6965 GB, free: 3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.1849, allocations: 32.62 kB / 0.6965 GB, free: 2.969 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.239e-05/0.185, allocations: 32 kB / 0.6966 GB, free: 2.938 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.1865, allocations: 0.7865 MB / 0.6973 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.1865, allocations: 11.92 kB / 0.6974 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.841e-05/0.1866, allocations: 11.95 kB / 0.6974 GB, free: 2.094 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001401/0.1867, allocations: 56.59 kB / 0.6974 GB, free: 2.035 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.1885, allocations: 0.8764 MB / 0.6983 GB, free: 1.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003441/0.192, allocations: 2.855 MB / 0.7011 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.1934, allocations: 0.5137 MB / 0.7016 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006443/0.1941, allocations: 264.6 kB / 0.7018 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.1942, allocations: 93.09 kB / 0.7019 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.1942, allocations: 30.56 kB / 0.7019 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 4.057e-06/0.1942, allocations: 4 kB / 0.7019 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=24): time 0.01062/0.2048, allocations: 3.215 MB / 0.7051 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.2049, allocations: 85.11 kB / 0.7052 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005064/0.2054, allocations: 425.4 kB / 0.7056 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.2055, allocations: 29.7 kB / 0.7056 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002006/0.2057, allocations: 239.9 kB / 0.7058 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.384e-05/0.2058, allocations: 86.73 kB / 0.7059 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.458e-05/0.2058, allocations: 8 kB / 0.7059 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.206, allocations: 342.8 kB / 0.7062 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008078/0.2068, allocations: 367.7 kB / 0.7066 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008344/0.2076, allocations: 450.9 kB / 0.707 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008285/0.2085, allocations: 390.5 kB / 0.7074 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2085, allocations: 4 kB / 0.7074 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004576/0.2131, allocations: 1.539 MB / 0.7089 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.217e-05/0.2132, allocations: 151.2 kB / 0.709 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.2132, allocations: 4 kB / 0.709 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003529/0.2167, allocations: 0.8442 MB / 0.7099 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005505/0.2173, allocations: 131.8 kB / 0.71 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006369/0.2237, allocations: 4.676 MB / 0.7146 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007236/0.2244, allocations: 119.8 kB / 0.7147 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.2245, allocations: 11.98 kB / 0.7147 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.504e-06/0.2245, allocations: 8.062 kB / 0.7147 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003771/0.2282, allocations: 1.253 MB / 0.7159 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2283, allocations: 4 kB / 0.7159 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002313/0.2306, allocations: 0.5469 MB / 0.7165 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005742/0.2312, allocations: 155.7 kB / 0.7166 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003264/0.2344, allocations: 2.498 MB / 0.719 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006533/0.2351, allocations: 111.9 kB / 0.7192 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.656e-05/0.2352, allocations: 19.98 kB / 0.7192 GB, free: 10.93 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003725/0.2355, allocations: 313.6 kB / 0.7195 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.809e-05/0.2356, allocations: 35.62 kB / 0.7195 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004212/0.2398, allocations: 1.439 MB / 0.7209 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2399, allocations: 0 / 0.7209 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2399, allocations: 7.938 kB / 0.7209 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2399, allocations: 3.938 kB / 0.7209 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004852/0.2447, allocations: 2.089 MB / 0.723 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.2448, allocations: 4 kB / 0.723 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003547/0.2451, allocations: 79.84 kB / 0.723 GB, free: 6.871 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00311/0.2482, allocations: 0.7897 MB / 0.7238 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.2483, allocations: 11.98 kB / 0.7238 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005502/0.2538, allocations: 4.485 MB / 0.7282 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2538, allocations: 8.094 kB / 0.7282 GB, free: 1.301 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003993/0.2578, allocations: 1.435 MB / 0.7296 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002778/0.2581, allocations: 172.8 kB / 0.7298 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.346e-05/0.2582, allocations: 12 kB / 0.7298 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005456/0.2588, allocations: 95.84 kB / 0.7299 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.2589, allocations: 19.95 kB / 0.7299 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.2589, allocations: 19.94 kB / 0.7299 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003936/0.2593, allocations: 311.1 kB / 0.7302 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2593, allocations: 0 / 0.7302 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009237/0.2603, allocations: 208 kB / 0.7304 GB, free: 15 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002195/0.2605, allocations: 111.2 kB / 0.7305 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003353/0.2639, allocations: 1.624 MB / 0.7321 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.2639, allocations: 4 kB / 0.7321 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.265, allocations: 0.6613 MB / 0.7328 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.2657, allocations: 116.9 kB / 0.7329 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.2677, allocations: 1.214 MB / 0.7341 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.2682, allocations: 0.9248 MB / 0.735 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005265/0.2688, allocations: 151.2 kB / 0.7351 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.2689, allocations: 35.41 kB / 0.7351 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of SimCode: time 6.12e-07/0.2689, allocations: 4 kB / 0.7351 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of Templates: time 0.01717/0.2861, allocations: 11.93 MB / 0.7468 GB, free: 14.19 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)