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.001258/0.001258, allocations: 111.9 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 196.5 kB / 16.54 MB, free: 6.668 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.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.00216/0.00216, allocations: 295.1 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.936/0.936, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 100.1 kB / 0.5952 GB, free: 27.87 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.17, allocations: 86.98 MB / 0.6802 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLine): time 0.008456/0.1785, allocations: 6.268 MB / 0.6863 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006249/0.1848, allocations: 4.546 MB / 0.6907 GB, free: 5.824 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005033/0.1853, allocations: 23.88 kB / 0.6908 GB, free: 5.801 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002294/0.1877, allocations: 0.9142 MB / 0.6917 GB, free: 4.883 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001932/0.1896, allocations: 0.7801 MB / 0.6924 GB, free: 4.105 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007343/0.1903, allocations: 319.5 kB / 0.6927 GB, free: 3.793 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.1917, allocations: 1.129 MB / 0.6938 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008936/0.1926, allocations: 0.681 MB / 0.6945 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005761/0.1932, allocations: 474.4 kB / 0.6949 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006778/0.1939, allocations: 0.4942 MB / 0.6954 GB, free: 1.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.194, allocations: 72 kB / 0.6955 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005257/0.1945, allocations: 275.5 kB / 0.6958 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.1948, allocations: 255.2 kB / 0.696 GB, free: 440 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003669/0.1951, allocations: 406 kB / 0.6964 GB, free: 32 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.1963, allocations: 1.067 MB / 0.6974 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1963, allocations: 0 / 0.6974 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.913e-06/0.1963, allocations: 0 / 0.6974 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.315e-05/0.1964, allocations: 0 / 0.6974 GB, free: 14.96 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001957/0.1983, allocations: 1.091 MB / 0.6985 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.1984, allocations: 8.031 kB / 0.6985 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003178/0.2016, allocations: 0.6319 MB / 0.6991 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000836/0.2024, allocations: 0.5463 MB / 0.6997 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.2025, allocations: 41.67 kB / 0.6997 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-05/0.2025, allocations: 48.12 kB / 0.6997 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/0.2045, allocations: 1.022 MB / 0.7007 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.2045, allocations: 3.938 kB / 0.7007 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.181e-05/0.2046, allocations: 27.98 kB / 0.7008 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-05/0.2047, allocations: 49.28 kB / 0.7008 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002486/0.2072, allocations: 1.008 MB / 0.7018 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003938/0.2111, allocations: 3.486 MB / 0.7052 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.2126, allocations: 491.1 kB / 0.7057 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005511/0.2132, allocations: 229.2 kB / 0.7059 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.2132, allocations: 19.95 kB / 0.7059 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.2132, allocations: 34.56 kB / 0.7059 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 2.404e-06/0.2132, allocations: 0 / 0.7059 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.00681/0.2201, allocations: 2.002 MB / 0.7079 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.2201, allocations: 59.39 kB / 0.708 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008133/0.221, allocations: 0.5704 MB / 0.7085 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.221, allocations: 37.64 kB / 0.7085 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003159/0.2213, allocations: 356.2 kB / 0.7089 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.2215, allocations: 153.7 kB / 0.709 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/0.2217, allocations: 98.14 kB / 0.7091 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001917/0.2219, allocations: 378.7 kB / 0.7095 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007051/0.2226, allocations: 258.9 kB / 0.7097 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007464/0.2233, allocations: 361.8 kB / 0.7101 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.2247, allocations: 0.6225 MB / 0.7107 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2247, allocations: 4 kB / 0.7107 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002372/0.2271, allocations: 0.9273 MB / 0.7116 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.2272, allocations: 8 kB / 0.7116 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.2272, allocations: 4 kB / 0.7116 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.2283, allocations: 277.2 kB / 0.7119 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006163/0.2289, allocations: 111.8 kB / 0.712 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007104/0.236, allocations: 9.114 MB / 0.7209 GB, free: 5.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008139/0.2369, allocations: 48 kB / 0.7209 GB, free: 5.371 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.866e-05/0.2369, allocations: 20 kB / 0.7209 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009781/0.2379, allocations: 437.6 kB / 0.7214 GB, free: 4.922 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007225/0.2387, allocations: 353.4 kB / 0.7217 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001371/0.24, allocations: 0.609 MB / 0.7223 GB, free: 3.883 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.225e-06/0.2401, allocations: 0 / 0.7223 GB, free: 3.883 MB / 0.5137 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002522/0.2426, allocations: 1.125 MB / 0.7234 GB, free: 2.676 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.2426, allocations: 10.12 kB / 0.7234 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2426, allocations: 4.344 kB / 0.7234 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007919/0.2434, allocations: 225 kB / 0.7236 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006142/0.244, allocations: 119.8 kB / 0.7237 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006528/0.2506, allocations: 8.799 MB / 0.7323 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007033/0.2513, allocations: 39.95 kB / 0.7324 GB, free: 8.633 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.2514, allocations: 20 kB / 0.7324 GB, free: 8.613 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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002428/0.2516, allocations: 221.6 kB / 0.7326 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.2517, allocations: 63.25 kB / 0.7327 GB, free: 8.328 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.2519, allocations: 74.38 kB / 0.7327 GB, free: 8.254 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2519, allocations: 4 kB / 0.7327 GB, free: 8.25 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.252, allocations: 4 kB / 0.7327 GB, free: 8.246 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.252, allocations: 4 kB / 0.7327 GB, free: 8.242 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000835/0.2528, allocations: 0.6648 MB / 0.7334 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2528, allocations: 0 / 0.7334 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005044/0.2533, allocations: 83.91 kB / 0.7335 GB, free: 7.445 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009842/0.2543, allocations: 273 kB / 0.7337 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.2544, allocations: 12 kB / 0.7337 GB, free: 7.148 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006733/0.2611, allocations: 9.054 MB / 0.7426 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.2612, allocations: 0 / 0.7426 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.2635, allocations: 0.9169 MB / 0.7435 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/0.2638, allocations: 184.4 kB / 0.7437 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.827e-05/0.2639, allocations: 4 kB / 0.7437 GB, free: 12.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005087/0.2644, allocations: 43.95 kB / 0.7437 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.2645, allocations: 43.88 kB / 0.7437 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.2646, allocations: 12 kB / 0.7438 GB, free: 12 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004663/0.265, allocations: 403.1 kB / 0.7441 GB, free: 11.61 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.265, allocations: 0 / 0.7441 GB, free: 11.61 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001056/0.2661, allocations: 304 kB / 0.7444 GB, free: 11.31 MB / 0.545 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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001371/0.2663, allocations: 116.3 kB / 0.7445 GB, free: 11.19 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003853/0.2701, allocations: 2.396 MB / 0.7469 GB, free: 8.637 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.2701, allocations: 3.938 kB / 0.7469 GB, free: 8.633 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.2715, allocations: 1.015 MB / 0.7479 GB, free: 7.543 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.2725, allocations: 232.4 kB / 0.7481 GB, free: 7.328 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.2753, allocations: 1.309 MB / 0.7494 GB, free: 5.988 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005423/0.2759, allocations: 0.9858 MB / 0.7503 GB, free: 4.977 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005686/0.2764, allocations: 149.4 kB / 0.7505 GB, free: 4.828 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.2766, allocations: 39.44 kB / 0.7505 GB, free: 4.789 MB / 0.545 GB Notification: Performance of SimCode: time 7.21e-07/0.2766, allocations: 0 / 0.7505 GB, free: 4.789 MB / 0.545 GB Notification: Performance of Templates: time 0.02123/0.2978, allocations: 13.45 MB / 0.7637 GB, free: 7.488 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)