Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009155/0.0009156, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001039/0.001039, allocations: 172.7 kB / 15.95 MB, free: 208 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.377/1.377, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001707/0.001707, allocations: 275 kB / 291.3 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9945/0.9945, allocations: 169.5 MB / 0.5 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004848/0.0004849, allocations: 16.91 kB / 0.598 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2155, allocations: 88.53 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.007929/0.2235, allocations: 6.05 MB / 0.6904 GB, free: 9.379 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005371/0.2289, allocations: 2.908 MB / 0.6932 GB, free: 6.477 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005211/0.2295, allocations: 23.81 kB / 0.6933 GB, free: 6.453 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004008/0.2299, allocations: 130.9 kB / 0.6934 GB, free: 6.324 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.2311, allocations: 410.9 kB / 0.6938 GB, free: 5.926 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009877/0.2321, allocations: 337.5 kB / 0.6941 GB, free: 5.602 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001385/0.2335, allocations: 1.33 MB / 0.6954 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001786/0.2353, allocations: 0.9269 MB / 0.6963 GB, free: 3.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008394/0.2361, allocations: 390.4 kB / 0.6967 GB, free: 2.938 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006334/0.2368, allocations: 494.2 kB / 0.6971 GB, free: 2.453 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.305e-05/0.2369, allocations: 32 kB / 0.6972 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005155/0.2374, allocations: 187.8 kB / 0.6973 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002599/0.2377, allocations: 275.2 kB / 0.6976 GB, free: 1.969 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.2379, allocations: 177.3 kB / 0.6978 GB, free: 1.789 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009322/0.2388, allocations: 0.9039 MB / 0.6987 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.2388, allocations: 0 / 0.6987 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.2388, allocations: 3.938 kB / 0.6987 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2388, allocations: 4 kB / 0.6987 GB, free: 0.875 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001821/0.2407, allocations: 1.013 MB / 0.6997 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.2407, allocations: 8.031 kB / 0.6997 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001403/0.2421, allocations: 234.6 kB / 0.6999 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008126/0.2429, allocations: 0.5404 MB / 0.7004 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.243, allocations: 57.28 kB / 0.7005 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.2431, allocations: 63.98 kB / 0.7005 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.2446, allocations: 1.069 MB / 0.7016 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.2446, allocations: 7.938 kB / 0.7016 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/0.2447, allocations: 31.98 kB / 0.7016 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001422/0.2449, allocations: 85.25 kB / 0.7017 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.2461, allocations: 0.7465 MB / 0.7024 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005872/0.252, allocations: 5.909 MB / 0.7082 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.253, allocations: 0.5438 MB / 0.7087 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004557/0.2535, allocations: 330 kB / 0.709 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.114e-05/0.2535, allocations: 8.375 kB / 0.709 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.2536, allocations: 39 kB / 0.7091 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 2.325e-06/0.2536, allocations: 0 / 0.7091 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.004108/0.2577, allocations: 1.994 MB / 0.711 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.2578, allocations: 55.84 kB / 0.7111 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008215/0.2586, allocations: 0.5547 MB / 0.7116 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.2587, allocations: 33.7 kB / 0.7117 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003782/0.2591, allocations: 426.9 kB / 0.7121 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.2592, allocations: 169.6 kB / 0.7122 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/0.2593, allocations: 19.88 kB / 0.7122 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002228/0.2595, allocations: 374.8 kB / 0.7126 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004432/0.26, allocations: 273.8 kB / 0.7129 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006381/0.2606, allocations: 489 kB / 0.7133 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005642/0.2612, allocations: 346 kB / 0.7137 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.2612, allocations: 4 kB / 0.7137 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001875/0.2631, allocations: 1.075 MB / 0.7147 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.2631, allocations: 8 kB / 0.7147 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.2631, allocations: 8 kB / 0.7147 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000846/0.264, allocations: 283.3 kB / 0.715 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004711/0.2645, allocations: 123.8 kB / 0.7151 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006365/0.2709, allocations: 6.595 MB / 0.7216 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006567/0.2715, allocations: 48.08 kB / 0.7216 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/0.2716, allocations: 24 kB / 0.7216 GB, free: 7.91 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004017/0.272, allocations: 254.3 kB / 0.7219 GB, free: 7.652 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.2721, allocations: 75.16 kB / 0.7219 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.2738, allocations: 0.8886 MB / 0.7228 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2738, allocations: 4 kB / 0.7228 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2738, allocations: 4 kB / 0.7228 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.2738, allocations: 0 / 0.7228 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.2765, allocations: 1.724 MB / 0.7245 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.2765, allocations: 4 kB / 0.7245 GB, free: 4.84 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002644/0.2768, allocations: 55.89 kB / 0.7246 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007511/0.2776, allocations: 283.3 kB / 0.7248 GB, free: 4.496 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.945e-05/0.2776, allocations: 11.98 kB / 0.7248 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006301/0.2839, allocations: 6.571 MB / 0.7313 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.284, allocations: 4.031 kB / 0.7313 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.2856, allocations: 0.9798 MB / 0.7322 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003022/0.2859, allocations: 192.2 kB / 0.7324 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.86e-05/0.286, allocations: 16 kB / 0.7324 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003362/0.2864, allocations: 27.95 kB / 0.7324 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.2865, allocations: 43.91 kB / 0.7325 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.2865, allocations: 16 kB / 0.7325 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000486/0.287, allocations: 387.1 kB / 0.7329 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.287, allocations: 3.938 kB / 0.7329 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008281/0.2879, allocations: 220 kB / 0.7331 GB, free: 11.45 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001638/0.288, allocations: 124.2 kB / 0.7332 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001977/0.29, allocations: 1.268 MB / 0.7344 GB, free: 9.996 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.29, allocations: 3.938 kB / 0.7344 GB, free: 9.992 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001251/0.2913, allocations: 0.8854 MB / 0.7353 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.2924, allocations: 209.3 kB / 0.7355 GB, free: 8.852 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/0.295, allocations: 1.596 MB / 0.7371 GB, free: 7.215 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007097/0.2957, allocations: 1.009 MB / 0.7381 GB, free: 6.176 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004555/0.2962, allocations: 126 kB / 0.7382 GB, free: 6.051 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.2963, allocations: 39.44 kB / 0.7382 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/0.2963, allocations: 0 / 0.7382 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of Templates: time 0.01906/0.3154, allocations: 10.29 MB / 0.7483 GB, free: 11.85 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)