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.0008662/0.000866, allocations: 86.09 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.0008442/0.0008442, 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.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001721/0.001721, allocations: 263 kB / 291.3 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.038/1.038, allocations: 169.5 MB / 0.5 GB, free: 14.24 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004194/0.0004194, allocations: 11.31 kB / 0.598 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1877, allocations: 88.54 MB / 0.6845 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003682/0.1914, allocations: 2.649 MB / 0.6871 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.1941, allocations: 1.779 MB / 0.6888 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.1943, allocations: 4 kB / 0.6888 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.1945, allocations: 40.2 kB / 0.6888 GB, free: 11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/0.195, allocations: 133.9 kB / 0.689 GB, free: 10.87 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005173/0.1955, allocations: 172.3 kB / 0.6891 GB, free: 10.7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004221/0.1959, allocations: 370.8 kB / 0.6895 GB, free: 10.34 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006148/0.1965, allocations: 311.2 kB / 0.6898 GB, free: 10.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.1967, allocations: 113.2 kB / 0.6899 GB, free: 9.914 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002755/0.197, allocations: 139.5 kB / 0.69 GB, free: 9.777 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.197, allocations: 12 kB / 0.69 GB, free: 9.766 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004282/0.1975, allocations: 259.6 kB / 0.6903 GB, free: 9.512 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.934e-05/0.1976, allocations: 74.83 kB / 0.6904 GB, free: 9.441 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.356e-05/0.1976, allocations: 65.58 kB / 0.6904 GB, free: 9.371 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.198, allocations: 351.2 kB / 0.6908 GB, free: 9.027 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.198, allocations: 0 / 0.6908 GB, free: 9.027 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.198, allocations: 3.938 kB / 0.6908 GB, free: 9.023 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.1981, allocations: 0 / 0.6908 GB, free: 9.023 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007908/0.1988, allocations: 0.5192 MB / 0.6913 GB, free: 8.457 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1989, allocations: 13.75 kB / 0.6913 GB, free: 8.445 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007372/0.1996, allocations: 111.5 kB / 0.6914 GB, free: 8.336 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.2, allocations: 250.2 kB / 0.6916 GB, free: 8.055 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.2, allocations: 20.36 kB / 0.6916 GB, free: 8.035 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.71e-05/0.2, allocations: 20.62 kB / 0.6917 GB, free: 8.016 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.2006, allocations: 347.8 kB / 0.692 GB, free: 7.656 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2006, allocations: 3.984 kB / 0.692 GB, free: 7.652 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.184e-05/0.2006, allocations: 8 kB / 0.692 GB, free: 7.645 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.322e-05/0.2007, allocations: 32.36 kB / 0.692 GB, free: 7.613 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004408/0.2011, allocations: 289.5 kB / 0.6923 GB, free: 7.332 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.2034, allocations: 1.749 MB / 0.694 GB, free: 5.414 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004556/0.2039, allocations: 318.6 kB / 0.6943 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.2041, allocations: 107.5 kB / 0.6944 GB, free: 4.957 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.2042, allocations: 97.08 kB / 0.6945 GB, free: 4.844 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.2042, allocations: 34.5 kB / 0.6945 GB, free: 4.801 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.2042, allocations: 0 / 0.6945 GB, free: 4.801 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.00239/0.2066, allocations: 0.9705 MB / 0.6955 GB, free: 3.797 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.2067, allocations: 81.3 kB / 0.6956 GB, free: 3.699 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.2069, allocations: 212.4 kB / 0.6958 GB, free: 3.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.2069, allocations: 33.73 kB / 0.6958 GB, free: 3.441 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.2071, allocations: 184 kB / 0.696 GB, free: 3.258 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.242e-05/0.2071, allocations: 82.89 kB / 0.6961 GB, free: 3.176 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.582e-05/0.2071, allocations: 4 kB / 0.6961 GB, free: 3.172 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.2073, allocations: 326.8 kB / 0.6964 GB, free: 2.844 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.2075, allocations: 135.9 kB / 0.6965 GB, free: 2.711 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002381/0.2077, allocations: 206.5 kB / 0.6967 GB, free: 2.477 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.208, allocations: 173.8 kB / 0.6969 GB, free: 2.309 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.208, allocations: 0 / 0.6969 GB, free: 2.309 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008127/0.2088, allocations: 0.496 MB / 0.6974 GB, free: 1.797 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2088, allocations: 4.312 kB / 0.6974 GB, free: 1.793 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2089, allocations: 8 kB / 0.6974 GB, free: 1.785 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004827/0.2093, allocations: 159.2 kB / 0.6975 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/0.2096, allocations: 55.91 kB / 0.6976 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003126/0.2127, allocations: 3.961 MB / 0.7014 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.2129, allocations: 24 kB / 0.7015 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.2129, allocations: 8 kB / 0.7015 GB, free: 13.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001982/0.2132, allocations: 173.6 kB / 0.7016 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.325e-05/0.2132, allocations: 19.91 kB / 0.7017 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008178/0.214, allocations: 466.4 kB / 0.7021 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2141, allocations: 4 kB / 0.7021 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2141, allocations: 4 kB / 0.7021 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2141, allocations: 7.984 kB / 0.7021 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.2156, allocations: 1.006 MB / 0.7031 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2157, allocations: 0 / 0.7031 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.2158, allocations: 31.92 kB / 0.7031 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004079/0.2162, allocations: 159.5 kB / 0.7033 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.2162, allocations: 4 kB / 0.7033 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/0.219, allocations: 3.946 MB / 0.7071 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.219, allocations: 4 kB / 0.7071 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007885/0.2198, allocations: 0.6181 MB / 0.7077 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.22, allocations: 128.8 kB / 0.7079 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.22, allocations: 15.94 kB / 0.7079 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.2202, allocations: 19.98 kB / 0.7079 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.938e-05/0.2203, allocations: 23.97 kB / 0.7079 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.2203, allocations: 8 kB / 0.7079 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001391/0.2205, allocations: 157.5 kB / 0.7081 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.653e-06/0.2205, allocations: 0 / 0.7081 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005219/0.221, allocations: 95.92 kB / 0.7082 GB, free: 5.863 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002024/0.2212, allocations: 131.1 kB / 0.7083 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009693/0.2222, allocations: 0.5666 MB / 0.7089 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2222, allocations: 4 kB / 0.7089 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005106/0.2227, allocations: 402.2 kB / 0.7092 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004991/0.2232, allocations: 39.94 kB / 0.7093 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.2244, allocations: 0.7356 MB / 0.71 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.2248, allocations: 0.7794 MB / 0.7108 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001684/0.225, allocations: 66.17 kB / 0.7108 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.225, allocations: 19.44 kB / 0.7108 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of SimCode: time 5.01e-07/0.2251, allocations: 0 / 0.7108 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of Templates: time 0.007782/0.2328, allocations: 3.872 MB / 0.7146 GB, free: 15.16 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)