Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004994/0.004994, allocations: 103.7 kB / 15.73 MB, free: 6.051 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.001073/0.001073, allocations: 194.6 kB / 16.68 MB, free: 5.98 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 282.9 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9493/0.9493, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 99.84 kB / 0.6815 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1556, allocations: 86.98 MB / 0.7664 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.3577/0.5134, allocations: 30.75 MB / 0.7964 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02644/0.5399, allocations: 13.58 MB / 0.8097 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004209/0.5441, allocations: 143.2 kB / 0.8098 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01051/0.5547, allocations: 3.206 MB / 0.813 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01373/0.5684, allocations: 2.754 MB / 0.8156 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0096/0.578, allocations: 2.016 MB / 0.8176 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01595/0.594, allocations: 7.644 MB / 0.8251 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01298/0.607, allocations: 8.23 MB / 0.8331 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006491/0.6135, allocations: 3.469 MB / 0.8365 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006578/0.6201, allocations: 3.38 MB / 0.8398 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.002212/0.6223, allocations: 0.5953 MB / 0.8404 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005131/0.6275, allocations: 1.501 MB / 0.8419 GB, free: 4.734 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.003947/0.6315, allocations: 2.359 MB / 0.8442 GB, free: 3.203 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.007207/0.6387, allocations: 2.881 MB / 0.847 GB, free: 1.207 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.652, allocations: 9.463 MB / 0.8562 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.652, allocations: 0 / 0.8562 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.345e-06/0.652, allocations: 0 / 0.8562 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0003727/0.6524, allocations: 0 / 0.8562 GB, free: 7.793 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01298/0.6654, allocations: 5.148 MB / 0.8612 GB, free: 2.566 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.6654, allocations: 8.031 kB / 0.8612 GB, free: 2.559 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006307/0.6717, allocations: 0.9981 MB / 0.8622 GB, free: 1.555 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006215/0.678, allocations: 3.075 MB / 0.8652 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002657/0.6783, allocations: 320.8 kB / 0.8655 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001261/0.6795, allocations: 424 kB / 0.8659 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01331/0.6929, allocations: 6.791 MB / 0.8726 GB, free: 6.578 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001476/0.693, allocations: 19.78 kB / 0.8726 GB, free: 6.559 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006798/0.6937, allocations: 184 kB / 0.8728 GB, free: 6.379 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008779/0.6946, allocations: 372 kB / 0.8731 GB, free: 6.012 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009128/0.7038, allocations: 5.11 MB / 0.8781 GB, free: 0.8828 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03491/0.7387, allocations: 30.51 MB / 0.9079 GB, free: 15.6 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/0.7409, allocations: 1.398 MB / 0.9093 GB, free: 14.19 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/0.7427, allocations: 1.335 MB / 0.9106 GB, free: 12.86 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 8.966e-05/0.7428, allocations: 13.31 kB / 0.9106 GB, free: 12.85 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.7428, allocations: 51.88 kB / 0.9106 GB, free: 12.79 MB / 0.67 GB Notification: Performance of pre-optimization done (n=130): time 3.246e-06/0.7428, allocations: 0 / 0.9106 GB, free: 12.79 MB / 0.67 GB Notification: Performance of matching and sorting (n=199): time 0.0887/0.8315, allocations: 23.07 MB / 0.9332 GB, free: 5.598 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.8316, allocations: 77.41 kB / 0.9332 GB, free: 5.508 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.8351, allocations: 2.058 MB / 0.9353 GB, free: 3.434 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002222/0.8354, allocations: 61.7 kB / 0.9353 GB, free: 3.367 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.8369, allocations: 2.01 MB / 0.9373 GB, free: 1.332 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006289/0.8375, allocations: 0.6854 MB / 0.9379 GB, free: 0.6367 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008109/0.8384, allocations: 404.2 kB / 0.9383 GB, free: 240 kB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.8385, allocations: 313.1 kB / 0.9386 GB, free: 15.93 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.8406, allocations: 1.426 MB / 0.94 GB, free: 14.5 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002584/0.8432, allocations: 2.013 MB / 0.942 GB, free: 12.24 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004991/0.8482, allocations: 3.696 MB / 0.9456 GB, free: 8.301 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.53e-05/0.8483, allocations: 4 kB / 0.9456 GB, free: 8.297 MB / 0.7012 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01097/0.8592, allocations: 5.669 MB / 0.9511 GB, free: 2.559 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.8593, allocations: 12 kB / 0.9511 GB, free: 2.547 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/0.8593, allocations: 16 kB / 0.9512 GB, free: 2.531 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006625/0.8659, allocations: 2.072 MB / 0.9532 GB, free: 412 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/0.8675, allocations: 383.3 kB / 0.9536 GB, free: 28 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03776/0.9053, allocations: 38.44 MB / 0.9911 GB, free: 7.059 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/0.9078, allocations: 127.9 kB / 0.9912 GB, free: 6.934 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004094/0.9082, allocations: 95.98 kB / 0.9913 GB, free: 6.84 MB / 0.7481 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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.002875/0.9111, allocations: 1.504 MB / 0.9928 GB, free: 5.328 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007276/0.9119, allocations: 280.7 kB / 0.993 GB, free: 5.051 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01079/0.9227, allocations: 5.215 MB / 0.9981 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.9227, allocations: 20 kB / 0.9981 GB, free: 15.74 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.313e-05/0.9228, allocations: 16 kB / 0.9982 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.9228, allocations: 11.97 kB / 0.9982 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01805/0.9408, allocations: 9.673 MB / 1.008 GB, free: 5.832 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.898e-05/0.9409, allocations: 8 kB / 1.008 GB, free: 5.824 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008902/0.9418, allocations: 215.6 kB / 1.008 GB, free: 5.613 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005892/0.9477, allocations: 1.85 MB / 1.01 GB, free: 3.707 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001757/0.9479, allocations: 36 kB / 1.01 GB, free: 3.672 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03758/0.9855, allocations: 37.44 MB / 1.046 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/0.9855, allocations: 7.938 kB / 1.046 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009562/0.9951, allocations: 4.909 MB / 1.051 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001406/0.9965, allocations: 0.6147 MB / 1.052 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006486/0.9972, allocations: 48.12 kB / 1.052 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/0.999, allocations: 131.8 kB / 1.052 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006455/0.9996, allocations: 201.6 kB / 1.052 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.9998, allocations: 52 kB / 1.052 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002457/1.002, allocations: 1.382 MB / 1.053 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/1.002, allocations: 3.938 kB / 1.053 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003755/1.006, allocations: 1.043 MB / 1.054 GB, free: 3.117 MB / 0.8106 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003687/1.006, allocations: 163 kB / 1.055 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.01018/1.017, allocations: 6.288 MB / 1.061 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/1.017, allocations: 4 kB / 1.061 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.007352/1.024, allocations: 4.406 MB / 1.065 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004848/1.029, allocations: 1.002 MB / 1.066 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/1.043, allocations: 8.043 MB / 1.074 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003484/1.046, allocations: 3.117 MB / 1.077 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001669/1.048, allocations: 0.5276 MB / 1.077 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004135/1.048, allocations: 151.4 kB / 1.078 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of SimCode: time 9.82e-07/1.048, allocations: 0 / 1.078 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of Templates: time 0.4383/1.487, allocations: 58.5 MB / 1.135 GB, free: 249.1 MB / 0.8419 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1)