Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001101/0.001101, allocations: 106.3 kB / 16.41 MB, free: 6.496 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.001148/0.001148, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.46/1.46, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002224/0.002224, allocations: 290.1 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.96/0.96, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003241/0.003241, allocations: 87.86 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5584/0.5617, allocations: 86.98 MB / 0.767 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.006384/0.5681, allocations: 4.372 MB / 0.7713 GB, free: 15.56 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004926/0.5731, allocations: 3.226 MB / 0.7745 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003424/0.5735, allocations: 19.88 kB / 0.7745 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001531/0.575, allocations: 0.5174 MB / 0.775 GB, free: 11.79 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0009953/0.576, allocations: 382.7 kB / 0.7754 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.5767, allocations: 255.3 kB / 0.7756 GB, free: 11.16 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007633/0.5775, allocations: 0.5918 MB / 0.7762 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006571/0.5781, allocations: 0.5248 MB / 0.7767 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004853/0.5786, allocations: 295 kB / 0.777 GB, free: 9.758 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004061/0.579, allocations: 275 kB / 0.7772 GB, free: 9.488 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.414e-05/0.5791, allocations: 40 kB / 0.7773 GB, free: 9.449 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004647/0.5796, allocations: 283.5 kB / 0.7775 GB, free: 9.172 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001524/0.5798, allocations: 163.5 kB / 0.7777 GB, free: 9.012 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002491/0.58, allocations: 230.9 kB / 0.7779 GB, free: 8.785 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0008018/0.5808, allocations: 0.7815 MB / 0.7787 GB, free: 8.004 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.5808, allocations: 0 / 0.7787 GB, free: 8.004 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.183e-06/0.5808, allocations: 4 kB / 0.7787 GB, free: 8 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.5809, allocations: 0 / 0.7787 GB, free: 8 MB / 0.545 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.00112/0.582, allocations: 0.7636 MB / 0.7794 GB, free: 7.188 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.582, allocations: 8.031 kB / 0.7794 GB, free: 7.18 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002684/0.5847, allocations: 0.6672 MB / 0.7801 GB, free: 6.512 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006073/0.5853, allocations: 447.7 kB / 0.7805 GB, free: 6.039 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.5854, allocations: 25.03 kB / 0.7805 GB, free: 6.016 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.323e-05/0.5854, allocations: 32.12 kB / 0.7806 GB, free: 5.984 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.5869, allocations: 0.7786 MB / 0.7813 GB, free: 5.168 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.587, allocations: 3.938 kB / 0.7813 GB, free: 5.164 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.03e-05/0.587, allocations: 15.98 kB / 0.7813 GB, free: 5.148 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000116/0.5871, allocations: 48.61 kB / 0.7814 GB, free: 5.102 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.5891, allocations: 0.8569 MB / 0.7822 GB, free: 4.246 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.5926, allocations: 2.784 MB / 0.785 GB, free: 1.238 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.5942, allocations: 0.498 MB / 0.7854 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007014/0.5949, allocations: 256.5 kB / 0.7857 GB, free: 488 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.821e-05/0.595, allocations: 89.09 kB / 0.7858 GB, free: 380 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.595, allocations: 34.84 kB / 0.7858 GB, free: 336 kB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 3.617e-06/0.5951, allocations: 7.922 kB / 0.7858 GB, free: 328 kB / 0.545 GB Notification: Performance of matching and sorting (n=24): time 0.01095/0.606, allocations: 2.962 MB / 0.7887 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.6061, allocations: 59.33 kB / 0.7888 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004226/0.6065, allocations: 409.4 kB / 0.7891 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.94e-05/0.6066, allocations: 29.7 kB / 0.7892 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.6067, allocations: 227.9 kB / 0.7894 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.47e-05/0.6068, allocations: 90.75 kB / 0.7895 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.607, allocations: 73.67 kB / 0.7895 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.6071, allocations: 338.8 kB / 0.7899 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000878/0.608, allocations: 352.4 kB / 0.7902 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009169/0.6089, allocations: 412.5 kB / 0.7906 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/0.6107, allocations: 0.7384 MB / 0.7913 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.6107, allocations: 4 kB / 0.7913 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004897/0.6156, allocations: 1.468 MB / 0.7928 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.6156, allocations: 8 kB / 0.7928 GB, free: 9.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.6157, allocations: 0 / 0.7928 GB, free: 9.039 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003518/0.6192, allocations: 0.7819 MB / 0.7935 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005909/0.6198, allocations: 123.8 kB / 0.7936 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006739/0.6265, allocations: 4.827 MB / 0.7984 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007788/0.6273, allocations: 107.8 kB / 0.7985 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/0.6274, allocations: 24.05 kB / 0.7985 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001112/0.6285, allocations: 0.5154 MB / 0.799 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008827/0.6294, allocations: 406 kB / 0.7994 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001697/0.6311, allocations: 0.7063 MB / 0.8001 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.295e-06/0.6311, allocations: 4 kB / 0.8001 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.003994/0.6351, allocations: 1.243 MB / 0.8013 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.6351, allocations: 8 kB / 0.8013 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.6351, allocations: 0 / 0.8013 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/0.6374, allocations: 0.4924 MB / 0.8018 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000597/0.638, allocations: 139.8 kB / 0.8019 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003477/0.6415, allocations: 2.609 MB / 0.8045 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007/0.6422, allocations: 103.8 kB / 0.8046 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.6422, allocations: 19.98 kB / 0.8046 GB, free: 12.44 MB / 0.5762 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.0001853/0.6424, allocations: 196.1 kB / 0.8048 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.185e-05/0.6425, allocations: 35.56 kB / 0.8048 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004364/0.6469, allocations: 1.34 MB / 0.8061 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.6469, allocations: 7.938 kB / 0.8061 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.6469, allocations: 0 / 0.8061 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.6469, allocations: 0 / 0.8061 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004909/0.6518, allocations: 1.999 MB / 0.8081 GB, free: 8.781 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.6518, allocations: 0 / 0.8081 GB, free: 8.781 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.6522, allocations: 79.83 kB / 0.8081 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002915/0.6551, allocations: 0.7078 MB / 0.8088 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.6552, allocations: 11.94 kB / 0.8088 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005551/0.6607, allocations: 4.671 MB / 0.8134 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.6608, allocations: 0 / 0.8134 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004087/0.6648, allocations: 1.353 MB / 0.8147 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.665, allocations: 164.7 kB / 0.8149 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.6651, allocations: 7.906 kB / 0.8149 GB, free: 1.449 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005617/0.6657, allocations: 87.86 kB / 0.815 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.6658, allocations: 27.97 kB / 0.815 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.6658, allocations: 12.17 kB / 0.815 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003229/0.6662, allocations: 299.1 kB / 0.8153 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6662, allocations: 0 / 0.8153 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007487/0.6669, allocations: 204 kB / 0.8155 GB, free: 0.8359 MB / 0.5762 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.0001609/0.6671, allocations: 111.2 kB / 0.8156 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003386/0.6705, allocations: 1.536 MB / 0.8171 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6705, allocations: 0 / 0.8171 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.6717, allocations: 0.6321 MB / 0.8177 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006239/0.6723, allocations: 125.8 kB / 0.8178 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/0.6741, allocations: 1.069 MB / 0.8189 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.6746, allocations: 0.8976 MB / 0.8198 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.6747, allocations: 39.42 kB / 0.8198 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/0.6747, allocations: 0 / 0.8198 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of Templates: time 0.01372/0.6885, allocations: 12.4 MB / 0.8319 GB, free: 15.94 MB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)