Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.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.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 111.3 kB / 15.34 MB, free: 0.5078 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.001337/0.001337, allocations: 195 kB / 16.25 MB, free: 6.152 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.435/1.435, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002638/0.002638, allocations: 282.8 kB / 290.4 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.089/1.089, allocations: 178.6 MB / 0.507 GB, free: 4.727 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002766/0.002766, allocations: 96.34 kB / 0.6059 GB, free: 24.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1752, allocations: 89.15 MB / 0.693 GB, free: 4.711 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004925/0.1802, allocations: 3.115 MB / 0.696 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003262/0.1835, allocations: 1.903 MB / 0.6979 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.1837, allocations: 4.625 kB / 0.6979 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009302/0.1846, allocations: 266.5 kB / 0.6981 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005068/0.1852, allocations: 180.8 kB / 0.6983 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006633/0.1859, allocations: 219.5 kB / 0.6985 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004552/0.1863, allocations: 322.9 kB / 0.6988 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004764/0.1868, allocations: 216.9 kB / 0.699 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.187, allocations: 127.6 kB / 0.6992 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.1873, allocations: 155.4 kB / 0.6993 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.983e-05/0.1874, allocations: 20 kB / 0.6993 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007082/0.1881, allocations: 407.2 kB / 0.6997 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.1882, allocations: 87.78 kB / 0.6998 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.1884, allocations: 119.4 kB / 0.6999 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006894/0.1891, allocations: 0.4947 MB / 0.7004 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1891, allocations: 0 / 0.7004 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.382e-06/0.1891, allocations: 0 / 0.7004 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.1891, allocations: 4 kB / 0.7004 GB, free: 13.09 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000932/0.19, allocations: 0.5614 MB / 0.7009 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1901, allocations: 8.031 kB / 0.701 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008535/0.1909, allocations: 112.5 kB / 0.7011 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.1913, allocations: 263.8 kB / 0.7013 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.1913, allocations: 12.81 kB / 0.7013 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/0.1914, allocations: 20.38 kB / 0.7013 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005973/0.192, allocations: 353.5 kB / 0.7017 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.192, allocations: 3.938 kB / 0.7017 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.1921, allocations: 8 kB / 0.7017 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.7e-05/0.1921, allocations: 24.42 kB / 0.7017 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005087/0.1926, allocations: 297.5 kB / 0.702 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.195, allocations: 1.741 MB / 0.7037 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005134/0.1956, allocations: 322.2 kB / 0.704 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.1957, allocations: 101.7 kB / 0.7041 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001252/0.1959, allocations: 97.06 kB / 0.7042 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.1959, allocations: 46.44 kB / 0.7042 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.1959, allocations: 0 / 0.7042 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.002599/0.1985, allocations: 0.9632 MB / 0.7052 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.1986, allocations: 88.98 kB / 0.7053 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002344/0.1988, allocations: 207.8 kB / 0.7055 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.1989, allocations: 29.7 kB / 0.7055 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.199, allocations: 176 kB / 0.7057 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.988e-05/0.1991, allocations: 74.91 kB / 0.7057 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.1992, allocations: 61.61 kB / 0.7058 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1994, allocations: 330.8 kB / 0.7061 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.1996, allocations: 135.9 kB / 0.7062 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.1999, allocations: 205.4 kB / 0.7064 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005268/0.2004, allocations: 367.1 kB / 0.7068 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2004, allocations: 3.938 kB / 0.7068 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009416/0.2014, allocations: 0.5038 MB / 0.7073 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.2014, allocations: 13.47 kB / 0.7073 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.2014, allocations: 4 kB / 0.7073 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000539/0.202, allocations: 151.3 kB / 0.7074 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.2023, allocations: 59.91 kB / 0.7075 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003698/0.206, allocations: 4.19 MB / 0.7116 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.2062, allocations: 20.02 kB / 0.7116 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.2063, allocations: 12 kB / 0.7116 GB, free: 0.7461 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002273/0.2065, allocations: 170.9 kB / 0.7118 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.116e-05/0.2066, allocations: 23.88 kB / 0.7118 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009715/0.2076, allocations: 474.3 kB / 0.7123 GB, free: 72 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.2076, allocations: 8 kB / 0.7123 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.2076, allocations: 0 / 0.7123 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2076, allocations: 3.984 kB / 0.7123 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.2093, allocations: 1.004 MB / 0.7132 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.351e-06/0.2093, allocations: 4 kB / 0.7133 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00014/0.2095, allocations: 39.91 kB / 0.7133 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004213/0.2099, allocations: 139.6 kB / 0.7134 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.2099, allocations: 11.98 kB / 0.7134 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003494/0.2134, allocations: 4.171 MB / 0.7175 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2135, allocations: 0 / 0.7175 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009329/0.2144, allocations: 0.6387 MB / 0.7181 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.2146, allocations: 124.8 kB / 0.7182 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.975e-05/0.2146, allocations: 11.94 kB / 0.7183 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.2149, allocations: 23.91 kB / 0.7183 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.2149, allocations: 19.92 kB / 0.7183 GB, free: 9.375 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.2149, allocations: 12 kB / 0.7183 GB, free: 9.363 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001751/0.2151, allocations: 168.1 kB / 0.7185 GB, free: 9.199 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2151, allocations: 0 / 0.7185 GB, free: 9.199 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005442/0.2157, allocations: 84 kB / 0.7186 GB, free: 9.117 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002354/0.2159, allocations: 135.2 kB / 0.7187 GB, free: 8.973 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001059/0.217, allocations: 0.5945 MB / 0.7193 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.217, allocations: 0 / 0.7193 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005781/0.2176, allocations: 406.3 kB / 0.7197 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.2182, allocations: 43.97 kB / 0.7197 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.2194, allocations: 0.7307 MB / 0.7204 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.2198, allocations: 0.7753 MB / 0.7212 GB, free: 6.297 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001944/0.22, allocations: 62.25 kB / 0.7212 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.614e-05/0.2201, allocations: 23.44 kB / 0.7212 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of SimCode: time 4.7e-07/0.2201, allocations: 3.938 kB / 0.7212 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of Templates: time 0.009301/0.2294, allocations: 4.192 MB / 0.7253 GB, free: 2.055 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)