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.001132/0.001132, allocations: 103.8 kB / 16.4 MB, free: 6.457 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.001138/0.001138, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002129/0.002128, allocations: 287.7 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9428/0.9428, allocations: 169.3 MB / 0.499 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 91.86 kB / 0.6821 GB, free: 6.949 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4816/0.4834, allocations: 86.97 MB / 0.767 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLine): time 0.008117/0.4915, allocations: 6.276 MB / 0.7732 GB, free: 13.46 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.007713/0.4993, allocations: 4.542 MB / 0.7776 GB, free: 8.902 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006333/0.5, allocations: 23.88 kB / 0.7776 GB, free: 8.879 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002415/0.5025, allocations: 0.9064 MB / 0.7785 GB, free: 7.969 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.002032/0.5045, allocations: 0.7794 MB / 0.7793 GB, free: 7.188 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007416/0.5053, allocations: 317.1 kB / 0.7796 GB, free: 6.879 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001463/0.5067, allocations: 1.136 MB / 0.7807 GB, free: 5.738 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009096/0.5076, allocations: 0.6966 MB / 0.7814 GB, free: 5.035 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006728/0.5083, allocations: 490.3 kB / 0.7818 GB, free: 4.555 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007256/0.5091, allocations: 494.1 kB / 0.7823 GB, free: 4.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.5092, allocations: 68 kB / 0.7824 GB, free: 4.004 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000585/0.5098, allocations: 279.5 kB / 0.7826 GB, free: 3.73 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.51, allocations: 255.2 kB / 0.7829 GB, free: 3.48 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003797/0.5104, allocations: 406 kB / 0.7833 GB, free: 3.082 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.5116, allocations: 1.077 MB / 0.7843 GB, free: 2.004 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.5117, allocations: 0 / 0.7843 GB, free: 2.004 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.914e-06/0.5117, allocations: 0 / 0.7843 GB, free: 2.004 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.496e-05/0.5117, allocations: 0 / 0.7843 GB, free: 2.004 MB / 0.545 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.001839/0.5135, allocations: 1.098 MB / 0.7854 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.5136, allocations: 12.03 kB / 0.7854 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003184/0.5168, allocations: 0.6281 MB / 0.786 GB, free: 220 kB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009362/0.5177, allocations: 0.5697 MB / 0.7866 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.5178, allocations: 45.62 kB / 0.7866 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.38e-05/0.5179, allocations: 56.11 kB / 0.7867 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/0.5198, allocations: 1.022 MB / 0.7877 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.5199, allocations: 3.984 kB / 0.7877 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-05/0.5199, allocations: 24 kB / 0.7877 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.461e-05/0.52, allocations: 45.3 kB / 0.7877 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002331/0.5224, allocations: 1.008 MB / 0.7887 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004074/0.5264, allocations: 3.482 MB / 0.7921 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.5279, allocations: 499.2 kB / 0.7926 GB, free: 9.07 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005472/0.5285, allocations: 221.2 kB / 0.7928 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.859e-05/0.5285, allocations: 11.98 kB / 0.7928 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.5286, allocations: 42.55 kB / 0.7928 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=31): time 2.485e-06/0.5286, allocations: 0 / 0.7928 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43): time 0.006867/0.5355, allocations: 2.01 MB / 0.7948 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.5355, allocations: 55.41 kB / 0.7949 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006834/0.5362, allocations: 0.5743 MB / 0.7954 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.875e-05/0.5363, allocations: 33.7 kB / 0.7955 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.5365, allocations: 356.2 kB / 0.7958 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.5367, allocations: 149.8 kB / 0.7959 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.5368, allocations: 86.16 kB / 0.796 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.537, allocations: 378.7 kB / 0.7964 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006703/0.5377, allocations: 258.9 kB / 0.7966 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007273/0.5384, allocations: 369.8 kB / 0.797 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.5398, allocations: 0.6148 MB / 0.7976 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5398, allocations: 4 kB / 0.7976 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00236/0.5422, allocations: 0.9312 MB / 0.7985 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.5422, allocations: 10.5 kB / 0.7985 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.5422, allocations: 7.984 kB / 0.7985 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.5433, allocations: 273.2 kB / 0.7988 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006012/0.5439, allocations: 107.8 kB / 0.7989 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007596/0.5515, allocations: 9.108 MB / 0.8078 GB, free: 8.457 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006951/0.5523, allocations: 48.05 kB / 0.8078 GB, free: 8.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.869e-05/0.5524, allocations: 27.98 kB / 0.8078 GB, free: 8.383 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009603/0.5533, allocations: 439.4 kB / 0.8083 GB, free: 7.949 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007343/0.5541, allocations: 361.4 kB / 0.8086 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001423/0.5555, allocations: 0.6051 MB / 0.8092 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.226e-06/0.5555, allocations: 4 kB / 0.8092 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002568/0.5581, allocations: 1.117 MB / 0.8103 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.5581, allocations: 11.97 kB / 0.8103 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.5582, allocations: 4 kB / 0.8103 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008446/0.559, allocations: 229 kB / 0.8105 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/0.5597, allocations: 119.8 kB / 0.8106 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006554/0.5662, allocations: 8.785 MB / 0.8192 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006962/0.567, allocations: 43.95 kB / 0.8193 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.514e-05/0.567, allocations: 16 kB / 0.8193 GB, free: 11.64 MB / 0.5919 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.0002434/0.5673, allocations: 220.9 kB / 0.8195 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.5675, allocations: 71.33 kB / 0.8196 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/0.5677, allocations: 82.34 kB / 0.8196 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.5677, allocations: 4 kB / 0.8196 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.5677, allocations: 4 kB / 0.8196 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.5677, allocations: 0 / 0.8196 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008903/0.5686, allocations: 0.657 MB / 0.8203 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.5686, allocations: 0 / 0.8203 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005059/0.5691, allocations: 87.86 kB / 0.8204 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009534/0.5701, allocations: 260.9 kB / 0.8206 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-05/0.5702, allocations: 12 kB / 0.8206 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006771/0.5769, allocations: 9.059 MB / 0.8295 GB, free: 288 kB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.577, allocations: 0 / 0.8295 GB, free: 288 kB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/0.5793, allocations: 0.9132 MB / 0.8304 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003008/0.5796, allocations: 184.2 kB / 0.8305 GB, free: 15.13 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.5797, allocations: 7.984 kB / 0.8305 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005226/0.5802, allocations: 39.95 kB / 0.8306 GB, free: 15.08 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.5804, allocations: 35.95 kB / 0.8306 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.5804, allocations: 15.98 kB / 0.8306 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004894/0.5809, allocations: 407.1 kB / 0.831 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5809, allocations: 0 / 0.831 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001151/0.5821, allocations: 304 kB / 0.8313 GB, free: 14.34 MB / 0.6075 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.0001579/0.5823, allocations: 111.2 kB / 0.8314 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003826/0.5861, allocations: 2.353 MB / 0.8337 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5861, allocations: 0 / 0.8337 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.5875, allocations: 1.008 MB / 0.8347 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.5886, allocations: 229 kB / 0.8349 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.5913, allocations: 1.35 MB / 0.8362 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/0.592, allocations: 0.986 MB / 0.8372 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.5922, allocations: 47.42 kB / 0.8372 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of SimCode: time 5.51e-07/0.5922, allocations: 0 / 0.8372 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of Templates: time 0.02858/0.6208, allocations: 27.03 MB / 0.8636 GB, free: 13 MB / 0.6387 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)