Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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: "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",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.00691/0.00691, allocations: 101 kB / 15.73 MB, free: 6.062 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.001511/0.001511, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.497/1.497, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002692/0.002692, allocations: 286 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.06/1.06, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002755/0.002755, allocations: 95.84 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5014/0.5042, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01784/0.5221, allocations: 14.04 MB / 0.7796 GB, free: 5.746 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01471/0.5368, allocations: 9.392 MB / 0.7888 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001286/0.5382, allocations: 51.69 kB / 0.7888 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004467/0.5427, allocations: 1.679 MB / 0.7905 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004774/0.5475, allocations: 1.536 MB / 0.792 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00216/0.5496, allocations: 0.7535 MB / 0.7927 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004006/0.5536, allocations: 2.524 MB / 0.7952 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002056/0.5557, allocations: 1.415 MB / 0.7966 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001783/0.5575, allocations: 1.043 MB / 0.7976 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001801/0.5593, allocations: 1.152 MB / 0.7987 GB, free: 2.113 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002556/0.5596, allocations: 164 kB / 0.7989 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001655/0.5613, allocations: 0.7916 MB / 0.7996 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006858/0.562, allocations: 0.6154 MB / 0.8002 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.5631, allocations: 0.9369 MB / 0.8011 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003853/0.5669, allocations: 2.772 MB / 0.8039 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.567, allocations: 0 / 0.8039 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.974e-06/0.567, allocations: 0 / 0.8039 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.254e-05/0.567, allocations: 0 / 0.8039 GB, free: 12.82 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004299/0.5713, allocations: 2.195 MB / 0.806 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.5714, allocations: 8.031 kB / 0.806 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002667/0.5716, allocations: 190.4 kB / 0.8062 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01104/0.5827, allocations: 2.102 MB / 0.8082 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003098/0.5858, allocations: 1.299 MB / 0.8095 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.511e-05/0.5859, allocations: 86.73 kB / 0.8096 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000319/0.5863, allocations: 127.9 kB / 0.8097 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005843/0.5921, allocations: 2.683 MB / 0.8123 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.09e-05/0.5922, allocations: 7.938 kB / 0.8123 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001772/0.5924, allocations: 51.98 kB / 0.8124 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006168/0.593, allocations: 174.1 kB / 0.8126 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0075/0.6005, allocations: 2.803 MB / 0.8153 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01554/0.6161, allocations: 10.48 MB / 0.8255 GB, free: 5.754 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006897/0.623, allocations: 2.535 MB / 0.828 GB, free: 3.164 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003248/0.6263, allocations: 1.29 MB / 0.8293 GB, free: 1.871 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.456e-05/0.6263, allocations: 9 kB / 0.8293 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.509e-05/0.6264, allocations: 47.5 kB / 0.8293 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=89): time 2.565e-06/0.6264, allocations: 0 / 0.8293 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of matching and sorting (n=131): time 0.04504/0.6715, allocations: 13.38 MB / 0.8424 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.6715, allocations: 64.72 kB / 0.8424 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/0.6731, allocations: 1.121 MB / 0.8435 GB, free: 3.004 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001983/0.6734, allocations: 45.7 kB / 0.8436 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000628/0.674, allocations: 0.7326 MB / 0.8443 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004978/0.6745, allocations: 471.9 kB / 0.8448 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005172/0.675, allocations: 259.5 kB / 0.845 GB, free: 1.488 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001833/0.6752, allocations: 357.9 kB / 0.8453 GB, free: 1.133 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00325/0.6785, allocations: 1.343 MB / 0.8467 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003424/0.6819, allocations: 1.604 MB / 0.8482 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00674/0.6887, allocations: 2.994 MB / 0.8511 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.6887, allocations: 4 kB / 0.8511 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01141/0.7001, allocations: 4.447 MB / 0.8555 GB, free: 6.488 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.7001, allocations: 8 kB / 0.8555 GB, free: 6.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.7002, allocations: 8 kB / 0.8555 GB, free: 6.473 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005345/0.7055, allocations: 1.439 MB / 0.8569 GB, free: 4.992 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/0.7075, allocations: 431.3 kB / 0.8573 GB, free: 4.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03057/0.7381, allocations: 26.69 MB / 0.8834 GB, free: 8.051 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002566/0.7407, allocations: 303.5 kB / 0.8837 GB, free: 7.754 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/0.7409, allocations: 63.95 kB / 0.8837 GB, free: 7.691 MB / 0.6544 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009199/0.7418, allocations: 435.9 kB / 0.8842 GB, free: 7.258 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003443/0.7422, allocations: 175.1 kB / 0.8843 GB, free: 7.086 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/0.754, allocations: 4.457 MB / 0.8887 GB, free: 2.578 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.754, allocations: 12 kB / 0.8887 GB, free: 2.566 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.145e-05/0.7541, allocations: 16.19 kB / 0.8887 GB, free: 2.551 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.7541, allocations: 3.984 kB / 0.8887 GB, free: 2.547 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01527/0.7694, allocations: 6.771 MB / 0.8953 GB, free: 11.6 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.7694, allocations: 4 kB / 0.8953 GB, free: 11.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/0.7711, allocations: 383.3 kB / 0.8957 GB, free: 11.22 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004921/0.7761, allocations: 1.307 MB / 0.897 GB, free: 9.875 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/0.7762, allocations: 35.97 kB / 0.897 GB, free: 9.84 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02836/0.8046, allocations: 25.5 MB / 0.9219 GB, free: 14.52 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.8046, allocations: 8.062 kB / 0.9219 GB, free: 14.51 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/0.8157, allocations: 4.218 MB / 0.926 GB, free: 10.18 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/0.8169, allocations: 467.8 kB / 0.9265 GB, free: 9.707 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.8172, allocations: 24 kB / 0.9265 GB, free: 9.684 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001991/0.8192, allocations: 303.5 kB / 0.9268 GB, free: 9.387 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004375/0.8196, allocations: 132.7 kB / 0.9269 GB, free: 9.258 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.8197, allocations: 43.97 kB / 0.927 GB, free: 9.215 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001101/0.8209, allocations: 0.7565 MB / 0.9277 GB, free: 8.457 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8209, allocations: 0 / 0.9277 GB, free: 8.457 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.00249/0.8234, allocations: 0.5664 MB / 0.9282 GB, free: 7.891 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01134/0.8347, allocations: 4.802 MB / 0.9329 GB, free: 2.984 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.01151/0.8462, allocations: 5.138 MB / 0.938 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.8463, allocations: 4 kB / 0.938 GB, free: 13.67 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.007137/0.8534, allocations: 3.499 MB / 0.9414 GB, free: 10 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002583/0.856, allocations: 0.5603 MB / 0.9419 GB, free: 9.465 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04139/0.8974, allocations: 19.42 MB / 0.9609 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/0.8988, allocations: 1.477 MB / 0.9623 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001562/0.9004, allocations: 425.6 kB / 0.9627 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009613/0.9013, allocations: 0.6281 MB / 0.9633 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of SimCode: time 9.22e-07/0.9013, allocations: 4 kB / 0.9634 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5378/1.439, allocations: 51.71 MB / 1.014 GB, free: 158 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.69/20.13, allocations: 9.312 kB / 1.014 GB, free: 158 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1)