Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_9_Buildings.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.001154/0.001154, allocations: 92.31 kB / 16.02 MB, free: 80 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.001827/0.001827, allocations: 180.6 kB / 16.92 MB, free: 6.652 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.859/1.859, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.507/2.507, allocations: 390.9 MB / 0.667 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.000333, allocations: 11.98 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6719/0.6723, allocations: 142.4 MB / 0.9557 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.005658/0.678, allocations: 5.863 MB / 0.9614 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005839/0.6839, allocations: 4.463 MB / 0.9658 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007165/0.6846, allocations: 21.03 kB / 0.9658 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006279/0.6853, allocations: 146.4 kB / 0.966 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002474/0.6877, allocations: 0.7117 MB / 0.9667 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000809/0.6886, allocations: 290.4 kB / 0.9669 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001863/0.6904, allocations: 1.447 MB / 0.9683 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008113/0.6913, allocations: 0.5417 MB / 0.9689 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007443/0.692, allocations: 395.4 kB / 0.9692 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007627/0.6928, allocations: 480.5 kB / 0.9697 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.956e-05/0.6929, allocations: 32.12 kB / 0.9697 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006773/0.6936, allocations: 310.2 kB / 0.97 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.6938, allocations: 207.4 kB / 0.9702 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004346/0.6943, allocations: 389.2 kB / 0.9706 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009099/0.6952, allocations: 0.8148 MB / 0.9714 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.6952, allocations: 1.562 kB / 0.9714 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.713e-06/0.6952, allocations: 3.938 kB / 0.9714 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.189e-05/0.6952, allocations: 0 / 0.9714 GB, free: 12.3 MB / 0.7325 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.001694/0.6969, allocations: 0.9684 MB / 0.9723 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.697, allocations: 9.375 kB / 0.9724 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003442/0.7004, allocations: 0.6499 MB / 0.973 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009026/0.7013, allocations: 0.5412 MB / 0.9735 GB, free: 10.78 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.097e-05/0.7014, allocations: 43.52 kB / 0.9736 GB, free: 10.76 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.7015, allocations: 53.44 kB / 0.9736 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00215/0.7037, allocations: 1.026 MB / 0.9746 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.7037, allocations: 4.906 kB / 0.9746 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.434e-05/0.7038, allocations: 25.98 kB / 0.9746 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.381e-05/0.7039, allocations: 48.56 kB / 0.9747 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.7065, allocations: 1.014 MB / 0.9757 GB, free: 9.566 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004564/0.711, allocations: 3.517 MB / 0.9791 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.7127, allocations: 0.5174 MB / 0.9796 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006153/0.7133, allocations: 247.1 kB / 0.9799 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.346e-05/0.7134, allocations: 6.484 kB / 0.9799 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.7134, allocations: 41.31 kB / 0.9799 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=31): time 3.968e-06/0.7134, allocations: 3.984 kB / 0.9799 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43): time 0.007593/0.721, allocations: 2.231 MB / 0.9821 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.7211, allocations: 55.41 kB / 0.9821 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007638/0.7219, allocations: 0.5666 MB / 0.9827 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.7219, allocations: 37.64 kB / 0.9827 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.7222, allocations: 360.1 kB / 0.9831 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.7223, allocations: 149.8 kB / 0.9832 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.458e-05/0.7224, allocations: 41.7 kB / 0.9833 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001845/0.7226, allocations: 374.7 kB / 0.9836 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007512/0.7234, allocations: 280.9 kB / 0.9839 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007881/0.7242, allocations: 391.4 kB / 0.9843 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.7257, allocations: 0.6655 MB / 0.9849 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.7257, allocations: 0 / 0.9849 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002604/0.7283, allocations: 0.9781 MB / 0.9859 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.7284, allocations: 176.5 kB / 0.986 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.577e-06/0.7284, allocations: 4 kB / 0.986 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.7296, allocations: 272.8 kB / 0.9863 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006448/0.7303, allocations: 131.8 kB / 0.9864 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007209/0.7375, allocations: 8.49 MB / 0.9947 GB, free: 5.969 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000771/0.7383, allocations: 55.94 kB / 0.9948 GB, free: 5.914 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.7384, allocations: 24.06 kB / 0.9948 GB, free: 5.891 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.436e-06/0.7384, allocations: 5.406 kB / 0.9948 GB, free: 5.887 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002546/0.7409, allocations: 1.089 MB / 0.9958 GB, free: 4.723 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.741, allocations: 4 kB / 0.9959 GB, free: 4.719 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000783/0.7417, allocations: 213.3 kB / 0.9961 GB, free: 4.492 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/0.7424, allocations: 135.8 kB / 0.9962 GB, free: 4.359 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006266/0.7487, allocations: 8.168 MB / 1.004 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007226/0.7494, allocations: 51.98 kB / 1.004 GB, free: 11.34 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.508e-05/0.7495, allocations: 28 kB / 1.004 GB, free: 11.31 MB / 0.7637 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.00047/0.75, allocations: 316.9 kB / 1.005 GB, free: 10.99 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/0.7501, allocations: 67.16 kB / 1.005 GB, free: 10.93 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001878/0.7503, allocations: 78.38 kB / 1.005 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.7503, allocations: 4 kB / 1.005 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.7503, allocations: 4 kB / 1.005 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.7504, allocations: 4 kB / 1.005 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000905/0.7513, allocations: 0.6455 MB / 1.005 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.7513, allocations: 7.938 kB / 1.005 GB, free: 10.13 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005341/0.7518, allocations: 103.8 kB / 1.005 GB, free: 10.03 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.7529, allocations: 256.8 kB / 1.006 GB, free: 9.758 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.7529, allocations: 12 kB / 1.006 GB, free: 9.746 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006816/0.7597, allocations: 8.42 MB / 1.014 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.7598, allocations: 4 kB / 1.014 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.7622, allocations: 0.9638 MB / 1.015 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003326/0.7626, allocations: 180.3 kB / 1.015 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.7627, allocations: 7.938 kB / 1.015 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000586/0.7633, allocations: 51.95 kB / 1.015 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.7635, allocations: 39.94 kB / 1.015 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.708e-05/0.7635, allocations: 15.98 kB / 1.015 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005325/0.764, allocations: 403.1 kB / 1.016 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.764, allocations: 0 / 1.016 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00119/0.7652, allocations: 296 kB / 1.016 GB, free: 14.54 MB / 0.7794 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.0001565/0.7654, allocations: 115.2 kB / 1.016 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.004145/0.7696, allocations: 2.422 MB / 1.018 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.7696, allocations: 0 / 1.018 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.7711, allocations: 1.023 MB / 1.019 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.7724, allocations: 215.4 kB / 1.019 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/0.7753, allocations: 1.668 MB / 1.021 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006633/0.776, allocations: 0.9821 MB / 1.022 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.7762, allocations: 51.42 kB / 1.022 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of SimCode: time 7.11e-07/0.7762, allocations: 0 / 1.022 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of Templates: time 0.03188/0.8081, allocations: 26.91 MB / 1.048 GB, free: 12.9 MB / 0.8106 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)