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.001316/0.001316, allocations: 108 kB / 16.41 MB, free: 6.027 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.001317/0.001317, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.454/1.454, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003846/0.003846, allocations: 291.8 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.9788/0.9788, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 99.86 kB / 0.6821 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5103/0.5123, allocations: 86.97 MB / 0.767 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.00646/0.5188, allocations: 4.368 MB / 0.7713 GB, free: 15.51 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005017/0.5239, allocations: 3.233 MB / 0.7745 GB, free: 12.27 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003409/0.5243, allocations: 15.88 kB / 0.7745 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.5258, allocations: 0.5058 MB / 0.775 GB, free: 11.74 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0009936/0.5268, allocations: 389.9 kB / 0.7754 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007172/0.5276, allocations: 247.4 kB / 0.7756 GB, free: 11.12 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007405/0.5283, allocations: 0.5917 MB / 0.7762 GB, free: 10.52 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006666/0.529, allocations: 0.5209 MB / 0.7767 GB, free: 10 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004515/0.5295, allocations: 287.1 kB / 0.7769 GB, free: 9.723 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004133/0.5299, allocations: 283 kB / 0.7772 GB, free: 9.445 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.123e-05/0.53, allocations: 40 kB / 0.7773 GB, free: 9.406 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005585/0.5305, allocations: 283.5 kB / 0.7775 GB, free: 9.129 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.5307, allocations: 167.5 kB / 0.7777 GB, free: 8.965 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.5309, allocations: 226.9 kB / 0.7779 GB, free: 8.742 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0008476/0.5318, allocations: 0.7893 MB / 0.7787 GB, free: 7.953 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.5318, allocations: 0 / 0.7787 GB, free: 7.953 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.784e-06/0.5318, allocations: 4 kB / 0.7787 GB, free: 7.949 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.656e-06/0.5318, allocations: 0 / 0.7787 GB, free: 7.949 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.001273/0.5331, allocations: 0.7674 MB / 0.7794 GB, free: 7.133 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.5332, allocations: 8.031 kB / 0.7794 GB, free: 7.125 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002707/0.5359, allocations: 0.6555 MB / 0.7801 GB, free: 6.469 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006551/0.5365, allocations: 451.8 kB / 0.7805 GB, free: 5.992 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.5366, allocations: 28.95 kB / 0.7805 GB, free: 5.965 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.316e-05/0.5367, allocations: 32.12 kB / 0.7806 GB, free: 5.934 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.5382, allocations: 0.7825 MB / 0.7813 GB, free: 5.113 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.5383, allocations: 0 / 0.7813 GB, free: 5.113 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.5383, allocations: 12 kB / 0.7813 GB, free: 5.102 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000116/0.5384, allocations: 48.61 kB / 0.7814 GB, free: 5.055 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.5404, allocations: 0.8491 MB / 0.7822 GB, free: 4.207 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003874/0.5443, allocations: 2.792 MB / 0.7849 GB, free: 1.191 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.5459, allocations: 0.5019 MB / 0.7854 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006916/0.5466, allocations: 260.6 kB / 0.7857 GB, free: 432 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001204/0.5467, allocations: 89.38 kB / 0.7858 GB, free: 324 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.5468, allocations: 34.5 kB / 0.7858 GB, free: 280 kB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.5468, allocations: 0 / 0.7858 GB, free: 280 kB / 0.545 GB Notification: Performance of matching and sorting (n=24): time 0.01155/0.5583, allocations: 2.959 MB / 0.7887 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.5584, allocations: 55.41 kB / 0.7887 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005267/0.5589, allocations: 409.5 kB / 0.7891 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.559, allocations: 29.7 kB / 0.7892 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.5592, allocations: 231.9 kB / 0.7894 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.5593, allocations: 90.73 kB / 0.7895 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.5595, allocations: 69.69 kB / 0.7895 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.5596, allocations: 346.8 kB / 0.7899 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008936/0.5605, allocations: 348.4 kB / 0.7902 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009227/0.5615, allocations: 416.5 kB / 0.7906 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001709/0.5632, allocations: 0.7384 MB / 0.7913 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.5632, allocations: 0 / 0.7913 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004763/0.568, allocations: 1.472 MB / 0.7928 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.568, allocations: 10.81 kB / 0.7928 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.568, allocations: 0 / 0.7928 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003437/0.5715, allocations: 0.7702 MB / 0.7935 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000621/0.5721, allocations: 123.8 kB / 0.7936 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006872/0.579, allocations: 4.85 MB / 0.7984 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007595/0.5798, allocations: 103.9 kB / 0.7985 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.23e-05/0.5798, allocations: 19.98 kB / 0.7985 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001109/0.581, allocations: 0.5217 MB / 0.799 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008887/0.5819, allocations: 402 kB / 0.7994 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00172/0.5836, allocations: 0.7063 MB / 0.8001 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.785e-06/0.5836, allocations: 0 / 0.8001 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004117/0.5877, allocations: 1.247 MB / 0.8013 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.5878, allocations: 8 kB / 0.8013 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.5878, allocations: 0 / 0.8013 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/0.59, allocations: 0.4923 MB / 0.8018 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006258/0.5906, allocations: 139.8 kB / 0.8019 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003547/0.5942, allocations: 2.601 MB / 0.8044 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007171/0.5949, allocations: 111.9 kB / 0.8046 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.032e-05/0.595, allocations: 15.98 kB / 0.8046 GB, free: 12.39 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.0001847/0.5952, allocations: 200.1 kB / 0.8048 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.5953, allocations: 31.62 kB / 0.8048 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/0.5997, allocations: 1.345 MB / 0.8061 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.5997, allocations: 4 kB / 0.8061 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.5998, allocations: 0 / 0.8061 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5998, allocations: 0 / 0.8061 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005088/0.6049, allocations: 1.997 MB / 0.8081 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.6049, allocations: 0 / 0.8081 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.6053, allocations: 79.89 kB / 0.8081 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003038/0.6083, allocations: 0.7039 MB / 0.8088 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.376e-05/0.6084, allocations: 15.92 kB / 0.8088 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006007/0.6144, allocations: 4.671 MB / 0.8134 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.6144, allocations: 0 / 0.8134 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004255/0.6187, allocations: 1.359 MB / 0.8147 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.619, allocations: 164.7 kB / 0.8149 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.6191, allocations: 11.89 kB / 0.8149 GB, free: 1.395 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000665/0.6198, allocations: 87.84 kB / 0.815 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.62, allocations: 23.97 kB / 0.815 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.947e-05/0.62, allocations: 8 kB / 0.815 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003903/0.6204, allocations: 303.1 kB / 0.8153 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6204, allocations: 0 / 0.8153 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008951/0.6213, allocations: 200 kB / 0.8155 GB, free: 0.7891 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.0001963/0.6215, allocations: 107.2 kB / 0.8156 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003695/0.6252, allocations: 1.536 MB / 0.8171 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.6252, allocations: 3.938 kB / 0.8171 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.6265, allocations: 0.6378 MB / 0.8177 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007107/0.6272, allocations: 118.8 kB / 0.8178 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.6293, allocations: 1.07 MB / 0.8189 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005582/0.6298, allocations: 0.9016 MB / 0.8198 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.63, allocations: 35.41 kB / 0.8198 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of SimCode: time 2.11e-07/0.63, allocations: 0 / 0.8198 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of Templates: time 0.01747/0.6475, allocations: 12.39 MB / 0.8319 GB, free: 15.9 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)