Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001599/0.001599, allocations: 105.3 kB / 16.36 MB, free: 6.305 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.001846/0.001846, allocations: 192.1 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.788/1.788, allocations: 292.3 MB / 0.5496 GB, free: 17.38 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 71.89 kB / 0.6729 GB, free: 5.816 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2442, allocations: 114.6 MB / 0.7848 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.4045/0.6488, allocations: 4.358 MB / 0.789 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.004116/0.6529, allocations: 3.251 MB / 0.7922 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.6533, allocations: 15.94 kB / 0.7922 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001486/0.6548, allocations: 0.4995 MB / 0.7927 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.00087/0.6556, allocations: 384.4 kB / 0.7931 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005798/0.6562, allocations: 257.7 kB / 0.7933 GB, free: 45.35 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005995/0.6568, allocations: 0.59 MB / 0.7939 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006339/0.6575, allocations: 0.53 MB / 0.7944 GB, free: 45.29 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004062/0.6579, allocations: 283.5 kB / 0.7947 GB, free: 45.23 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003559/0.6583, allocations: 272 kB / 0.795 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.474e-05/0.6583, allocations: 38.22 kB / 0.795 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004715/0.6588, allocations: 290.9 kB / 0.7953 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.659, allocations: 169.3 kB / 0.7954 GB, free: 45.09 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.6591, allocations: 231.7 kB / 0.7957 GB, free: 45.02 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0006683/0.6598, allocations: 0.7804 MB / 0.7964 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.6598, allocations: 0 / 0.7964 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6598, allocations: 0 / 0.7964 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.6599, allocations: 0 / 0.7964 GB, free: 44.91 MB / 0.6544 GB 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.001069/0.6609, allocations: 0.7709 MB / 0.7972 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.661, allocations: 10.94 kB / 0.7972 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00264/0.6636, allocations: 0.6573 MB / 0.7978 GB, free: 44.36 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005793/0.6642, allocations: 451.9 kB / 0.7983 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.6642, allocations: 24.38 kB / 0.7983 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.903e-05/0.6643, allocations: 28.25 kB / 0.7983 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.6658, allocations: 0.7817 MB / 0.7991 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.6658, allocations: 2.5 kB / 0.7991 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.637e-05/0.6659, allocations: 10.75 kB / 0.7991 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.666, allocations: 40.2 kB / 0.7991 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/0.668, allocations: 0.8556 MB / 0.8 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.6717, allocations: 2.79 MB / 0.8027 GB, free: 41.92 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001746/0.6734, allocations: 0.5045 MB / 0.8032 GB, free: 41.8 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007159/0.6742, allocations: 250.2 kB / 0.8034 GB, free: 41.74 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 9.332e-05/0.6743, allocations: 90.77 kB / 0.8035 GB, free: 41.64 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.6743, allocations: 35.66 kB / 0.8035 GB, free: 41.6 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=16): time 2.445e-06/0.6743, allocations: 1.453 kB / 0.8035 GB, free: 41.6 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24): time 0.01178/0.6861, allocations: 2.954 MB / 0.8064 GB, free: 40.96 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.6862, allocations: 58.67 kB / 0.8065 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005486/0.6867, allocations: 409 kB / 0.8069 GB, free: 40.7 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.884e-05/0.6868, allocations: 32.02 kB / 0.8069 GB, free: 40.66 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.6869, allocations: 240.5 kB / 0.8071 GB, free: 40.47 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.288e-05/0.687, allocations: 79.95 kB / 0.8072 GB, free: 40.41 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.6872, allocations: 69.19 kB / 0.8073 GB, free: 40.37 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.104e-05/0.6873, allocations: 343.1 kB / 0.8076 GB, free: 40.05 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009572/0.6882, allocations: 348.2 kB / 0.8079 GB, free: 39.95 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009912/0.6892, allocations: 420.5 kB / 0.8083 GB, free: 39.77 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001815/0.691, allocations: 0.7312 MB / 0.809 GB, free: 39.5 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.6911, allocations: 0 / 0.809 GB, free: 39.5 MB / 0.6544 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005152/0.6962, allocations: 1.471 MB / 0.8105 GB, free: 39.16 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.6963, allocations: 11.19 kB / 0.8105 GB, free: 39.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.6963, allocations: 1.281 kB / 0.8105 GB, free: 39.15 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003607/0.6999, allocations: 0.7712 MB / 0.8112 GB, free: 39.08 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006773/0.7006, allocations: 125 kB / 0.8114 GB, free: 39.07 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006433/0.7071, allocations: 4.843 MB / 0.8161 GB, free: 35.63 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00092/0.708, allocations: 109.2 kB / 0.8162 GB, free: 35.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.527e-05/0.7081, allocations: 12.75 kB / 0.8162 GB, free: 35.62 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001148/0.7092, allocations: 0.5195 MB / 0.8167 GB, free: 35.42 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009915/0.7102, allocations: 408.1 kB / 0.8171 GB, free: 35.24 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001723/0.712, allocations: 0.7115 MB / 0.8178 GB, free: 34.97 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.496e-06/0.712, allocations: 2.109 kB / 0.8178 GB, free: 34.97 MB / 0.6544 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004357/0.7164, allocations: 1.251 MB / 0.819 GB, free: 34.66 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.7164, allocations: 6.719 kB / 0.819 GB, free: 34.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.7164, allocations: 2.812 kB / 0.819 GB, free: 34.66 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002416/0.7189, allocations: 0.4989 MB / 0.8195 GB, free: 34.61 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000705/0.7196, allocations: 135.6 kB / 0.8196 GB, free: 34.61 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003562/0.7231, allocations: 2.603 MB / 0.8222 GB, free: 32.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008062/0.724, allocations: 107.1 kB / 0.8223 GB, free: 32.81 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.724, allocations: 15.56 kB / 0.8223 GB, free: 32.81 MB / 0.6544 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 (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 {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.7242, allocations: 204.6 kB / 0.8225 GB, free: 32.61 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.12e-05/0.7243, allocations: 33.47 kB / 0.8225 GB, free: 32.59 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004533/0.7288, allocations: 1.34 MB / 0.8238 GB, free: 32.27 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.7289, allocations: 3.25 kB / 0.8238 GB, free: 32.27 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.7289, allocations: 1.734 kB / 0.8238 GB, free: 32.27 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.7289, allocations: 5.359 kB / 0.8238 GB, free: 32.26 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005486/0.7344, allocations: 1.982 MB / 0.8258 GB, free: 31.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.7344, allocations: 0 / 0.8258 GB, free: 31.52 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004237/0.7349, allocations: 89.89 kB / 0.8259 GB, free: 31.51 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003223/0.7381, allocations: 0.7056 MB / 0.8266 GB, free: 31.44 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.7382, allocations: 7.547 kB / 0.8266 GB, free: 31.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005301/0.7435, allocations: 4.679 MB / 0.8311 GB, free: 28.02 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.7435, allocations: 1.375 kB / 0.8311 GB, free: 28.02 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003991/0.7475, allocations: 1.359 MB / 0.8325 GB, free: 27.23 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/0.7478, allocations: 162.1 kB / 0.8326 GB, free: 27.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.428e-05/0.7479, allocations: 1.719 kB / 0.8326 GB, free: 27.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005567/0.7485, allocations: 91.69 kB / 0.8327 GB, free: 27.04 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.7486, allocations: 21.59 kB / 0.8327 GB, free: 27.03 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/0.7487, allocations: 13.88 kB / 0.8327 GB, free: 27.03 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003396/0.749, allocations: 300 kB / 0.833 GB, free: 26.84 MB / 0.6544 GB Notification: Performance of sort global known variables: time 9.52e-07/0.749, allocations: 0 / 0.833 GB, free: 26.84 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0009141/0.75, allocations: 198.5 kB / 0.8332 GB, free: 26.82 MB / 0.6544 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 (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 {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001753/0.7501, allocations: 112.4 kB / 0.8333 GB, free: 26.72 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003462/0.7536, allocations: 1.534 MB / 0.8348 GB, free: 25.77 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.7536, allocations: 0 / 0.8348 GB, free: 25.77 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.7548, allocations: 0.6303 MB / 0.8354 GB, free: 25.32 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007103/0.7555, allocations: 123.8 kB / 0.8356 GB, free: 25.28 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002024/0.7575, allocations: 1.079 MB / 0.8366 GB, free: 24.6 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.7579, allocations: 0.9034 MB / 0.8375 GB, free: 23.8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.7581, allocations: 41.97 kB / 0.8375 GB, free: 23.78 MB / 0.6544 GB Notification: Performance of SimCode: time 7.22e-07/0.7581, allocations: 0 / 0.8375 GB, free: 23.78 MB / 0.6544 GB Notification: Performance of Templates: time 0.01559/0.7737, allocations: 12.35 MB / 0.8496 GB, free: 17.47 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)