Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001545/0.001546, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001756/0.001756, allocations: 274.8 kB / 291.3 MB, free: 1.852 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9816/0.9816, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004636/0.000464, allocations: 13.38 kB / 0.598 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.216, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003174/0.2192, allocations: 2.474 MB / 0.6869 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.2214, allocations: 1.53 MB / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.2215, allocations: 7.938 kB / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.2217, allocations: 30.16 kB / 0.6884 GB, free: 11.42 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003654/0.2221, allocations: 135.4 kB / 0.6886 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004084/0.2225, allocations: 172.6 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003417/0.2228, allocations: 346.9 kB / 0.6891 GB, free: 10.78 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006722/0.2235, allocations: 372.1 kB / 0.6894 GB, free: 10.41 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.2237, allocations: 99.62 kB / 0.6895 GB, free: 10.31 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.224, allocations: 135.5 kB / 0.6896 GB, free: 10.18 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.224, allocations: 12 kB / 0.6896 GB, free: 10.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.2243, allocations: 137.5 kB / 0.6898 GB, free: 10.03 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.411e-05/0.2244, allocations: 79.77 kB / 0.6899 GB, free: 9.953 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.383e-05/0.2244, allocations: 61.58 kB / 0.6899 GB, free: 9.887 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003169/0.2247, allocations: 303.2 kB / 0.6902 GB, free: 9.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2247, allocations: 0 / 0.6902 GB, free: 9.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2248, allocations: 0.5 kB / 0.6902 GB, free: 9.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.2248, allocations: 0.7188 kB / 0.6902 GB, free: 9.59 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007472/0.2255, allocations: 0.5081 MB / 0.6907 GB, free: 9.031 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.2256, allocations: 9.469 kB / 0.6907 GB, free: 9.023 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006316/0.2262, allocations: 91.58 kB / 0.6908 GB, free: 8.934 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.2265, allocations: 252.6 kB / 0.691 GB, free: 8.648 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.2265, allocations: 16.98 kB / 0.6911 GB, free: 8.633 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.364e-05/0.2266, allocations: 24 kB / 0.6911 GB, free: 8.609 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000571/0.2272, allocations: 378.2 kB / 0.6914 GB, free: 8.207 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.2272, allocations: 0 / 0.6914 GB, free: 8.207 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.139e-05/0.2272, allocations: 8 kB / 0.6914 GB, free: 8.199 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.12e-05/0.2273, allocations: 24.31 kB / 0.6915 GB, free: 8.172 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005546/0.2278, allocations: 341.3 kB / 0.6918 GB, free: 7.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.2295, allocations: 1.732 MB / 0.6935 GB, free: 5.973 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006621/0.2302, allocations: 329.1 kB / 0.6938 GB, free: 5.633 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.2304, allocations: 165.5 kB / 0.694 GB, free: 5.465 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001485/0.2306, allocations: 85.11 kB / 0.694 GB, free: 5.363 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.2306, allocations: 34.56 kB / 0.6941 GB, free: 5.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.352e-06/0.2306, allocations: 4 kB / 0.6941 GB, free: 5.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=21): time 0.001245/0.2319, allocations: 0.6094 MB / 0.6947 GB, free: 4.68 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.2319, allocations: 85.05 kB / 0.6947 GB, free: 4.578 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.2321, allocations: 207.7 kB / 0.6949 GB, free: 4.363 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.2322, allocations: 25.7 kB / 0.695 GB, free: 4.332 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.489e-05/0.2323, allocations: 167.8 kB / 0.6951 GB, free: 4.164 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.2e-05/0.2323, allocations: 63.02 kB / 0.6952 GB, free: 4.102 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/0.2324, allocations: 8 kB / 0.6952 GB, free: 4.094 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2325, allocations: 334.8 kB / 0.6955 GB, free: 3.758 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.2327, allocations: 132.5 kB / 0.6956 GB, free: 3.629 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.233, allocations: 219.5 kB / 0.6959 GB, free: 3.379 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/0.2333, allocations: 161.7 kB / 0.696 GB, free: 3.223 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2333, allocations: 0 / 0.696 GB, free: 3.223 MB / 494.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007157/0.234, allocations: 435.4 kB / 0.6964 GB, free: 2.793 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.513e-05/0.2341, allocations: 170.5 kB / 0.6966 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.2341, allocations: 4 kB / 0.6966 GB, free: 2.582 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.2344, allocations: 48.83 kB / 0.6966 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.2347, allocations: 71.88 kB / 0.6967 GB, free: 2.461 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.236, allocations: 1.501 MB / 0.6982 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.2362, allocations: 31.91 kB / 0.6982 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.2362, allocations: 8 kB / 0.6982 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.2362, allocations: 6.344 kB / 0.6982 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006268/0.2369, allocations: 376.3 kB / 0.6986 GB, free: 416 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.896e-06/0.2369, allocations: 352 / 0.6986 GB, free: 416 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001135/0.237, allocations: 44.81 kB / 0.6986 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.2372, allocations: 75.84 kB / 0.6987 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.2384, allocations: 1.477 MB / 0.7001 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.2386, allocations: 31.88 kB / 0.7002 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.2386, allocations: 16.06 kB / 0.7002 GB, free: 14.62 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.2388, allocations: 241 kB / 0.7004 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.275e-05/0.2389, allocations: 23.88 kB / 0.7004 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006547/0.2395, allocations: 366 kB / 0.7008 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2396, allocations: 8 kB / 0.7008 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2396, allocations: 0 / 0.7008 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2396, allocations: 4 kB / 0.7008 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.2409, allocations: 0.9676 MB / 0.7017 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2409, allocations: 0 / 0.7017 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.2411, allocations: 55.89 kB / 0.7018 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001098/0.2412, allocations: 41.05 kB / 0.7018 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.2413, allocations: 4 kB / 0.7018 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.2423, allocations: 1.402 MB / 0.7032 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.2423, allocations: 3.953 kB / 0.7032 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006726/0.243, allocations: 0.5418 MB / 0.7037 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.2431, allocations: 128.7 kB / 0.7039 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.2432, allocations: 11.95 kB / 0.7039 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.2434, allocations: 23.97 kB / 0.7039 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.903e-05/0.2435, allocations: 24.06 kB / 0.7039 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2435, allocations: 7.984 kB / 0.7039 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000137/0.2436, allocations: 155 kB / 0.7041 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2437, allocations: 0 / 0.7041 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005807/0.2442, allocations: 104 kB / 0.7042 GB, free: 10.25 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001703/0.2444, allocations: 115.2 kB / 0.7043 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001214/0.2456, allocations: 0.7451 MB / 0.705 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2457, allocations: 0.9375 kB / 0.705 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003696/0.246, allocations: 274.5 kB / 0.7053 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004728/0.2465, allocations: 35.94 kB / 0.7053 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009724/0.2475, allocations: 0.6665 MB / 0.706 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.2479, allocations: 0.7717 MB / 0.7067 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002405/0.2481, allocations: 93.86 kB / 0.7068 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.273e-05/0.2482, allocations: 23.42 kB / 0.7068 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.2482, allocations: 0 / 0.7068 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of Templates: time 0.006392/0.2546, allocations: 2.974 MB / 0.7097 GB, free: 4.445 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)