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.001707/0.001707, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002012/0.002013, allocations: 189.3 kB / 16.25 MB, free: 6.637 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.446/1.446, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002606/0.002606, allocations: 294.8 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.082/1.082, allocations: 178.6 MB / 0.507 GB, free: 4.719 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004053/0.004053, allocations: 94.97 kB / 0.6059 GB, free: 25.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1832, allocations: 89.16 MB / 0.693 GB, free: 4.691 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLine): time 0.008799/0.192, allocations: 6.286 MB / 0.6991 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00738/0.1995, allocations: 4.502 MB / 0.7035 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005973/0.2001, allocations: 23.88 kB / 0.7035 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.2026, allocations: 0.8551 MB / 0.7044 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002217/0.2049, allocations: 0.7116 MB / 0.7051 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007466/0.2056, allocations: 290.6 kB / 0.7053 GB, free: 8 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001437/0.2071, allocations: 1.129 MB / 0.7064 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.2082, allocations: 0.7786 MB / 0.7072 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006176/0.2088, allocations: 478.3 kB / 0.7077 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007131/0.2096, allocations: 0.5059 MB / 0.7082 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.2097, allocations: 72 kB / 0.7082 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005157/0.2102, allocations: 275.5 kB / 0.7085 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002651/0.2105, allocations: 263.2 kB / 0.7087 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004015/0.2109, allocations: 409.9 kB / 0.7091 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.2121, allocations: 1.079 MB / 0.7102 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2121, allocations: 0 / 0.7102 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2121, allocations: 0 / 0.7102 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.722e-05/0.2122, allocations: 0 / 0.7102 GB, free: 3.027 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.002216/0.2144, allocations: 1.09 MB / 0.7113 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.2144, allocations: 8.031 kB / 0.7113 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003272/0.2177, allocations: 0.632 MB / 0.7119 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008976/0.2186, allocations: 0.5462 MB / 0.7124 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.329e-05/0.2187, allocations: 41.69 kB / 0.7124 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.918e-05/0.2188, allocations: 52.11 kB / 0.7125 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/0.2209, allocations: 1.022 MB / 0.7135 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.2209, allocations: 8 kB / 0.7135 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.085e-05/0.221, allocations: 20 kB / 0.7135 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-05/0.2211, allocations: 49.28 kB / 0.7136 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002382/0.2235, allocations: 1.004 MB / 0.7146 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004651/0.2281, allocations: 3.498 MB / 0.718 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.2297, allocations: 497.5 kB / 0.7184 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005673/0.2302, allocations: 232.6 kB / 0.7187 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.067e-05/0.2303, allocations: 8 kB / 0.7187 GB, free: 9.891 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.2303, allocations: 34.56 kB / 0.7187 GB, free: 9.848 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=31): time 1.984e-06/0.2303, allocations: 0 / 0.7187 GB, free: 9.848 MB / 0.5137 GB Notification: Performance of matching and sorting (n=43): time 0.00696/0.2373, allocations: 2.018 MB / 0.7207 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.2374, allocations: 59.41 kB / 0.7207 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007518/0.2381, allocations: 0.5627 MB / 0.7213 GB, free: 7.145 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.698e-05/0.2382, allocations: 37.64 kB / 0.7213 GB, free: 7.102 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.2385, allocations: 352.2 kB / 0.7217 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.2386, allocations: 153.8 kB / 0.7218 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.2388, allocations: 90.16 kB / 0.7219 GB, free: 6.504 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001843/0.239, allocations: 378.7 kB / 0.7222 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000668/0.2397, allocations: 254.9 kB / 0.7225 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007384/0.2404, allocations: 365.8 kB / 0.7228 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.2418, allocations: 0.6225 MB / 0.7234 GB, free: 4.809 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2419, allocations: 4 kB / 0.7235 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002476/0.2443, allocations: 0.9387 MB / 0.7244 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.2444, allocations: 8.344 kB / 0.7244 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.2444, allocations: 4 kB / 0.7244 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.2456, allocations: 268.9 kB / 0.7246 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000607/0.2462, allocations: 119.8 kB / 0.7247 GB, free: 3.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008602/0.2548, allocations: 9.115 MB / 0.7337 GB, free: 9.484 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006796/0.2555, allocations: 48.02 kB / 0.7337 GB, free: 9.438 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.2556, allocations: 16 kB / 0.7337 GB, free: 9.422 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009799/0.2566, allocations: 437 kB / 0.7341 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007253/0.2573, allocations: 365.4 kB / 0.7345 GB, free: 8.594 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001344/0.2587, allocations: 0.6051 MB / 0.7351 GB, free: 7.945 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.023e-06/0.2587, allocations: 7.938 kB / 0.7351 GB, free: 7.938 MB / 0.5294 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002487/0.2612, allocations: 1.113 MB / 0.7362 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2612, allocations: 16 kB / 0.7362 GB, free: 6.727 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2612, allocations: 4 kB / 0.7362 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008138/0.262, allocations: 224.9 kB / 0.7364 GB, free: 6.484 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006134/0.2627, allocations: 123.8 kB / 0.7365 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007476/0.2701, allocations: 8.785 MB / 0.7451 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006933/0.2709, allocations: 48.02 kB / 0.7451 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4e-05/0.2709, allocations: 16 kB / 0.7452 GB, free: 12.67 MB / 0.545 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.0002866/0.2712, allocations: 221.5 kB / 0.7454 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.2713, allocations: 67.25 kB / 0.7454 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.2715, allocations: 74.38 kB / 0.7455 GB, free: 12.31 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2715, allocations: 4 kB / 0.7455 GB, free: 12.31 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.2716, allocations: 4 kB / 0.7455 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.2716, allocations: 4 kB / 0.7455 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009119/0.2725, allocations: 0.657 MB / 0.7462 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2725, allocations: 0 / 0.7462 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/0.273, allocations: 87.91 kB / 0.7462 GB, free: 11.51 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009918/0.274, allocations: 269 kB / 0.7465 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.2741, allocations: 4 kB / 0.7465 GB, free: 11.22 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008062/0.2821, allocations: 9.069 MB / 0.7554 GB, free: 1.309 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2822, allocations: 0 / 0.7554 GB, free: 1.309 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002423/0.2846, allocations: 0.917 MB / 0.7563 GB, free: 364 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003042/0.2849, allocations: 184.2 kB / 0.7564 GB, free: 160 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/0.285, allocations: 8 kB / 0.7564 GB, free: 152 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004926/0.2855, allocations: 39.95 kB / 0.7565 GB, free: 112 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.2857, allocations: 39.89 kB / 0.7565 GB, free: 72 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.2857, allocations: 12.14 kB / 0.7565 GB, free: 60 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005671/0.2863, allocations: 407.1 kB / 0.7569 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3e-07/0.2863, allocations: 0 / 0.7569 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001155/0.2875, allocations: 300 kB / 0.7572 GB, free: 15.37 MB / 0.5606 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.0001728/0.2876, allocations: 111.2 kB / 0.7573 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004148/0.2918, allocations: 2.407 MB / 0.7597 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2918, allocations: 0 / 0.7597 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.2933, allocations: 0.9999 MB / 0.7606 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.2943, allocations: 231.7 kB / 0.7608 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.297, allocations: 1.568 MB / 0.7624 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006882/0.2977, allocations: 0.9781 MB / 0.7633 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005935/0.2983, allocations: 149.4 kB / 0.7635 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.2985, allocations: 47.42 kB / 0.7635 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of SimCode: time 6.41e-07/0.2985, allocations: 0 / 0.7635 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of Templates: time 0.3204/0.6189, allocations: 13.42 MB / 0.7766 GB, free: 75.15 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)