Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.42/1.42, allocations: 252 MB / 267.3 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001192/0.001192, allocations: 172 kB / 327 MB, free: 2.105 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.854/1.854, allocations: 205.4 MB / 0.578 GB, free: 20.09 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007923/0.0007922, allocations: 93.92 kB / 0.6826 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003848, allocations: 12.91 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2319, allocations: 106.3 MB / 0.9009 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N): time 0.01013/0.2421, allocations: 11.38 MB / 0.912 GB, free: 51.95 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.008325/0.2505, allocations: 5.495 MB / 0.9174 GB, free: 46.44 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.2519, allocations: 31.88 kB / 0.9174 GB, free: 46.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.2533, allocations: 318 kB / 0.9177 GB, free: 46.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.002688/0.2561, allocations: 0.6145 MB / 0.9183 GB, free: 45.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.2583, allocations: 0.6706 MB / 0.919 GB, free: 44.81 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.003304/0.2616, allocations: 3.753 MB / 0.9227 GB, free: 41.05 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00488/0.2665, allocations: 4.355 MB / 0.9269 GB, free: 36.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.2679, allocations: 0.7861 MB / 0.9277 GB, free: 35.83 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001367/0.2692, allocations: 1.113 MB / 0.9288 GB, free: 34.71 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.2694, allocations: 104 kB / 0.9289 GB, free: 34.61 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.2705, allocations: 0.5148 MB / 0.9294 GB, free: 34.1 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0005047/0.271, allocations: 0.7482 MB / 0.9301 GB, free: 33.35 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0007007/0.2717, allocations: 0.8647 MB / 0.931 GB, free: 32.47 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.002423/0.2742, allocations: 3.708 MB / 0.9346 GB, free: 28.75 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2742, allocations: 0 / 0.9346 GB, free: 28.75 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2742, allocations: 0 / 0.9346 GB, free: 28.75 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.316e-05/0.2742, allocations: 0 / 0.9346 GB, free: 28.75 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.00268/0.2769, allocations: 1.749 MB / 0.9363 GB, free: 26.95 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.277, allocations: 12.03 kB / 0.9363 GB, free: 26.94 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002654/0.2772, allocations: 256.9 kB / 0.9365 GB, free: 26.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002753/0.28, allocations: 0.7519 MB / 0.9373 GB, free: 25.92 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001867/0.2819, allocations: 1.259 MB / 0.9385 GB, free: 24.62 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.273e-05/0.282, allocations: 119.6 kB / 0.9386 GB, free: 24.5 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002414/0.2822, allocations: 167.9 kB / 0.9388 GB, free: 24.34 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003894/0.2861, allocations: 2.952 MB / 0.9417 GB, free: 21.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.824e-05/0.2862, allocations: 0 / 0.9417 GB, free: 21.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001655/0.2864, allocations: 71.94 kB / 0.9417 GB, free: 21.25 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003689/0.2867, allocations: 203 kB / 0.9419 GB, free: 21.05 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003266/0.29, allocations: 2.515 MB / 0.9444 GB, free: 18.54 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009146/0.2992, allocations: 10.89 MB / 0.955 GB, free: 6.746 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009963/0.3002, allocations: 0.9354 MB / 0.9559 GB, free: 5.766 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005721/0.3008, allocations: 0.5042 MB / 0.9564 GB, free: 5.262 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.872e-05/0.3009, allocations: 93.47 kB / 0.9565 GB, free: 5.152 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.3009, allocations: 42.94 kB / 0.9566 GB, free: 5.102 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.056e-06/0.3009, allocations: 0 / 0.9566 GB, free: 5.102 MB / 0.6042 GB Notification: Performance of matching and sorting (n=70): time 0.02656/0.3275, allocations: 8.972 MB / 0.9653 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/0.3276, allocations: 85.67 kB / 0.9654 GB, free: 11.95 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.329, allocations: 0.9454 MB / 0.9663 GB, free: 10.99 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.3292, allocations: 41.7 kB / 0.9664 GB, free: 10.94 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005759/0.3298, allocations: 0.7775 MB / 0.9671 GB, free: 10.15 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.33, allocations: 252.5 kB / 0.9674 GB, free: 9.898 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.705e-05/0.3301, allocations: 20 kB / 0.9674 GB, free: 9.879 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001978/0.3303, allocations: 394.8 kB / 0.9678 GB, free: 9.484 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.3315, allocations: 0.7989 MB / 0.9685 GB, free: 8.684 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.333, allocations: 1.164 MB / 0.9697 GB, free: 7.359 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002675/0.3357, allocations: 2.017 MB / 0.9716 GB, free: 5.195 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3357, allocations: 0 / 0.9716 GB, free: 5.195 MB / 0.6198 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00986/0.3456, allocations: 3.791 MB / 0.9753 GB, free: 1.387 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003131/0.3459, allocations: 412.8 kB / 0.9757 GB, free: 0.8242 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.3459, allocations: 12 kB / 0.9757 GB, free: 0.8125 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008623/0.3546, allocations: 2.169 MB / 0.9779 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009582/0.3556, allocations: 231.6 kB / 0.9781 GB, free: 14.41 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01648/0.372, allocations: 10.25 MB / 0.9881 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.3735, allocations: 207.5 kB / 0.9883 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.3738, allocations: 47.98 kB / 0.9883 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.779e-06/0.3738, allocations: 4 kB / 0.9883 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00803/0.3818, allocations: 3.08 MB / 0.9914 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.162e-05/0.3819, allocations: 12 kB / 0.9914 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005525/0.3874, allocations: 1.355 MB / 0.9927 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.3886, allocations: 291.5 kB / 0.993 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.3996, allocations: 6.158 MB / 0.999 GB, free: 8.613 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.401, allocations: 167.7 kB / 0.9991 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.4012, allocations: 51.98 kB / 0.9992 GB, free: 8.398 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0016/0.4029, allocations: 0.8986 MB / 1 GB, free: 7.488 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002907/0.4032, allocations: 86.97 kB / 1 GB, free: 7.402 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009194/0.4124, allocations: 3.327 MB / 1.003 GB, free: 4.055 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.4124, allocations: 8 kB / 1.003 GB, free: 4.047 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-05/0.4124, allocations: 7.984 kB / 1.003 GB, free: 4.039 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.4125, allocations: 0 / 1.003 GB, free: 4.039 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.4257, allocations: 5.501 MB / 1.009 GB, free: 14.42 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.4257, allocations: 11.94 kB / 1.009 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004553/0.4262, allocations: 108.1 kB / 1.009 GB, free: 14.3 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007704/0.4339, allocations: 1.977 MB / 1.011 GB, free: 12.32 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001483/0.4341, allocations: 16 kB / 1.011 GB, free: 12.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01501/0.4491, allocations: 9.654 MB / 1.02 GB, free: 2.383 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.4492, allocations: 7.938 kB / 1.02 GB, free: 2.375 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008946/0.4581, allocations: 3.206 MB / 1.023 GB, free: 15.11 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007766/0.4589, allocations: 328 kB / 1.024 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/0.4592, allocations: 16 kB / 1.024 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.4603, allocations: 159.7 kB / 1.024 GB, free: 14.6 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003451/0.4607, allocations: 60.42 kB / 1.024 GB, free: 14.54 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.913e-05/0.4608, allocations: 24 kB / 1.024 GB, free: 14.52 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001231/0.462, allocations: 0.6746 MB / 1.025 GB, free: 13.85 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.462, allocations: 4 kB / 1.025 GB, free: 13.85 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002725/0.4648, allocations: 0.6719 MB / 1.025 GB, free: 13.18 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009495/0.4743, allocations: 3.809 MB / 1.029 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.009376/0.4837, allocations: 3.924 MB / 1.033 GB, free: 5.352 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.4837, allocations: 0 / 1.033 GB, free: 5.352 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.4862, allocations: 1.316 MB / 1.034 GB, free: 4.004 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.4881, allocations: 250.7 kB / 1.034 GB, free: 3.758 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03847/0.5266, allocations: 17.48 MB / 1.051 GB, free: 1.762 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/0.5291, allocations: 1.726 MB / 1.053 GB, free: 4 kB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.4245/0.9536, allocations: 0.5042 MB / 1.054 GB, free: 140.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009699/0.9546, allocations: 0.5003 MB / 1.054 GB, free: 140.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.182e-06/0.9546, allocations: 0 / 1.054 GB, free: 140.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07114/1.026, allocations: 41.75 MB / 1.095 GB, free: 121.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/1.026, allocations: 280.9 kB / 1.095 GB, free: 120.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.964/3.99, allocations: 6.859 kB / 1.095 GB, free: 120.9 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1)