Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine.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.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008379/0.0008382, allocations: 86.72 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.00108/0.00108, 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.354/1.354, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001795/0.001795, allocations: 274.9 kB / 291.4 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9469/0.9469, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00046/0.00046, allocations: 13.06 kB / 0.598 GB, free: 28.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1598, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLine): time 0.006467/0.1663, allocations: 5.573 MB / 0.6899 GB, free: 9.867 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005931/0.1722, allocations: 4.219 MB / 0.694 GB, free: 5.652 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005152/0.1728, allocations: 23.88 kB / 0.6941 GB, free: 5.629 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000468/0.1733, allocations: 143.7 kB / 0.6942 GB, free: 5.488 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001762/0.175, allocations: 0.6233 MB / 0.6948 GB, free: 4.867 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006669/0.1757, allocations: 242.4 kB / 0.695 GB, free: 4.633 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.1771, allocations: 1.199 MB / 0.6962 GB, free: 3.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005965/0.1777, allocations: 488.4 kB / 0.6967 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000486/0.1782, allocations: 386.5 kB / 0.697 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006469/0.1788, allocations: 454.2 kB / 0.6975 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.438e-05/0.1789, allocations: 36 kB / 0.6975 GB, free: 2.062 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003534/0.1793, allocations: 151.8 kB / 0.6977 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.1795, allocations: 199.3 kB / 0.6979 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.1796, allocations: 173.3 kB / 0.698 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007411/0.1804, allocations: 0.8104 MB / 0.6988 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1804, allocations: 3.938 kB / 0.6988 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1804, allocations: 0 / 0.6988 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.1804, allocations: 0 / 0.6988 GB, free: 0.7266 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001675/0.1821, allocations: 0.9737 MB / 0.6998 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.1822, allocations: 8.031 kB / 0.6998 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002971/0.1851, allocations: 0.6544 MB / 0.7004 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008166/0.186, allocations: 0.5143 MB / 0.7009 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.186, allocations: 41.31 kB / 0.701 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.302e-05/0.1861, allocations: 55.92 kB / 0.701 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.188, allocations: 1.022 MB / 0.702 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.1881, allocations: 0 / 0.702 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-05/0.1881, allocations: 24 kB / 0.702 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.71e-05/0.1882, allocations: 49.28 kB / 0.7021 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.1904, allocations: 1.008 MB / 0.7031 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004212/0.1946, allocations: 3.514 MB / 0.7065 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.196, allocations: 0.522 MB / 0.707 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005169/0.1966, allocations: 240.7 kB / 0.7072 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.004e-05/0.1966, allocations: 11.94 kB / 0.7072 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.1966, allocations: 34.56 kB / 0.7073 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 2.415e-06/0.1967, allocations: 7.938 kB / 0.7073 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.006311/0.203, allocations: 2.209 MB / 0.7094 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.203, allocations: 55.41 kB / 0.7095 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006627/0.2037, allocations: 0.5743 MB / 0.71 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.2037, allocations: 29.7 kB / 0.7101 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.204, allocations: 360.2 kB / 0.7104 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.2041, allocations: 145.8 kB / 0.7106 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.2042, allocations: 8 kB / 0.7106 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001664/0.2043, allocations: 378.7 kB / 0.7109 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006409/0.205, allocations: 276.9 kB / 0.7112 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006885/0.2057, allocations: 373.8 kB / 0.7116 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006834/0.2064, allocations: 321.4 kB / 0.7119 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2064, allocations: 0 / 0.7119 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002274/0.2087, allocations: 0.9668 MB / 0.7128 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.2088, allocations: 190.9 kB / 0.713 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.2088, allocations: 4 kB / 0.713 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.2099, allocations: 272.8 kB / 0.7132 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005949/0.2105, allocations: 131.8 kB / 0.7134 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007174/0.2177, allocations: 8.471 MB / 0.7216 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006462/0.2183, allocations: 55.94 kB / 0.7217 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-05/0.2184, allocations: 16 kB / 0.7217 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.406e-06/0.2184, allocations: 8.062 kB / 0.7217 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002276/0.2207, allocations: 1.081 MB / 0.7228 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2207, allocations: 4 kB / 0.7228 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007269/0.2215, allocations: 217.3 kB / 0.723 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006114/0.2221, allocations: 139.8 kB / 0.7231 GB, free: 6.266 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006206/0.2283, allocations: 8.164 MB / 0.7311 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000724/0.2291, allocations: 47.95 kB / 0.7311 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.4e-05/0.2292, allocations: 20 kB / 0.7312 GB, free: 13.23 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.00051/0.2297, allocations: 321.6 kB / 0.7315 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.2299, allocations: 67.16 kB / 0.7315 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001949/0.2301, allocations: 78.38 kB / 0.7316 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.2301, allocations: 4 kB / 0.7316 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.2301, allocations: 4 kB / 0.7316 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.2301, allocations: 4.125 kB / 0.7316 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009603/0.2311, allocations: 0.6571 MB / 0.7323 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.2311, allocations: 0 / 0.7323 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.2317, allocations: 99.84 kB / 0.7324 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009716/0.2326, allocations: 260.8 kB / 0.7326 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.264e-05/0.2327, allocations: 11.98 kB / 0.7326 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006607/0.2393, allocations: 8.42 MB / 0.7408 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2394, allocations: 0 / 0.7408 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.2416, allocations: 0.9561 MB / 0.7418 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003113/0.2419, allocations: 184.2 kB / 0.7419 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.2421, allocations: 16 kB / 0.742 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005116/0.2426, allocations: 55.89 kB / 0.742 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.2427, allocations: 35.95 kB / 0.742 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/0.2428, allocations: 11.98 kB / 0.7421 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005314/0.2433, allocations: 399.1 kB / 0.7424 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2433, allocations: 3.938 kB / 0.7424 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001181/0.2445, allocations: 300 kB / 0.7427 GB, free: 468 kB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 25 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001646/0.2447, allocations: 111.2 kB / 0.7428 GB, free: 344 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003766/0.2485, allocations: 2.424 MB / 0.7452 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.2485, allocations: 0 / 0.7452 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.2498, allocations: 1.027 MB / 0.7462 GB, free: 12.65 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.2509, allocations: 218.2 kB / 0.7464 GB, free: 12.44 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.2535, allocations: 1.519 MB / 0.7479 GB, free: 10.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006272/0.2541, allocations: 0.9781 MB / 0.7489 GB, free: 9.891 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000615/0.2548, allocations: 149.3 kB / 0.749 GB, free: 9.742 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.2549, allocations: 51.42 kB / 0.749 GB, free: 9.691 MB / 0.545 GB Notification: Performance of SimCode: time 1.002e-06/0.2549, allocations: 4 kB / 0.749 GB, free: 9.688 MB / 0.545 GB Notification: Performance of Templates: time 0.02081/0.2757, allocations: 12.52 MB / 0.7613 GB, free: 13.32 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)