Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 109 kB / 16.41 MB, free: 6.438 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.00139/0.00139, allocations: 191.2 kB / 17.34 MB, free: 5.742 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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00224/0.00224, allocations: 292.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9914/0.9914, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002169, allocations: 95.86 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5311/0.5333, allocations: 86.98 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.008287/0.5416, allocations: 5.459 MB / 0.7724 GB, free: 14.43 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005048/0.5467, allocations: 2.623 MB / 0.7749 GB, free: 11.79 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007011/0.5475, allocations: 23.88 kB / 0.775 GB, free: 11.77 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002142/0.5497, allocations: 0.6756 MB / 0.7756 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001445/0.5512, allocations: 425.8 kB / 0.776 GB, free: 10.68 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.5525, allocations: 391.1 kB / 0.7764 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001474/0.554, allocations: 0.9513 MB / 0.7773 GB, free: 9.336 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008952/0.5549, allocations: 470.5 kB / 0.7778 GB, free: 8.875 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007976/0.5557, allocations: 378.7 kB / 0.7781 GB, free: 8.504 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007926/0.5565, allocations: 406.4 kB / 0.7785 GB, free: 8.105 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.5567, allocations: 48 kB / 0.7786 GB, free: 8.059 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000893/0.5576, allocations: 363.3 kB / 0.7789 GB, free: 7.703 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000367/0.5579, allocations: 239.4 kB / 0.7791 GB, free: 7.469 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006259/0.5586, allocations: 354.1 kB / 0.7795 GB, free: 7.121 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001573/0.5602, allocations: 0.9681 MB / 0.7804 GB, free: 6.152 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5602, allocations: 3.938 kB / 0.7804 GB, free: 6.148 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.173e-06/0.5602, allocations: 4 kB / 0.7804 GB, free: 6.145 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.632e-05/0.5602, allocations: 4 kB / 0.7804 GB, free: 6.141 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002132/0.5624, allocations: 0.9698 MB / 0.7814 GB, free: 5.121 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.5624, allocations: 8.031 kB / 0.7814 GB, free: 5.113 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001575/0.564, allocations: 199.8 kB / 0.7816 GB, free: 4.918 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009424/0.565, allocations: 0.514 MB / 0.7821 GB, free: 4.367 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.946e-05/0.565, allocations: 45.36 kB / 0.7821 GB, free: 4.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001849/0.5652, allocations: 52.56 kB / 0.7822 GB, free: 4.27 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.5665, allocations: 0.8264 MB / 0.783 GB, free: 3.367 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/0.5666, allocations: 7.938 kB / 0.783 GB, free: 3.359 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/0.5666, allocations: 23.98 kB / 0.783 GB, free: 3.336 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002039/0.5669, allocations: 68.94 kB / 0.7831 GB, free: 3.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.5679, allocations: 0.5697 MB / 0.7836 GB, free: 2.695 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004974/0.5729, allocations: 4.565 MB / 0.7881 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004929/0.5734, allocations: 299.2 kB / 0.7884 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/0.5737, allocations: 221.3 kB / 0.7886 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.5738, allocations: 4.281 kB / 0.7886 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.5738, allocations: 38.84 kB / 0.7886 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 2.565e-06/0.5738, allocations: 0 / 0.7886 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40): time 0.005935/0.5798, allocations: 2.628 MB / 0.7912 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/0.5798, allocations: 55.41 kB / 0.7913 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005664/0.5804, allocations: 461.9 kB / 0.7917 GB, free: 9.926 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.164e-05/0.5805, allocations: 33.7 kB / 0.7917 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/0.5807, allocations: 339.6 kB / 0.7921 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.5809, allocations: 141.9 kB / 0.7922 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.5811, allocations: 102.2 kB / 0.7923 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001766/0.5812, allocations: 366.8 kB / 0.7926 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000374/0.5816, allocations: 241 kB / 0.7929 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004984/0.5821, allocations: 406.4 kB / 0.7933 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000936/0.5831, allocations: 0.674 MB / 0.7939 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5831, allocations: 0 / 0.7939 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001786/0.5849, allocations: 0.9174 MB / 0.7948 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.5849, allocations: 8 kB / 0.7948 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.5849, allocations: 4 kB / 0.7948 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008318/0.5858, allocations: 226.6 kB / 0.795 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005367/0.5863, allocations: 115.9 kB / 0.7951 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005718/0.592, allocations: 5.347 MB / 0.8004 GB, free: 432 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005664/0.5926, allocations: 27.97 kB / 0.8004 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-05/0.5927, allocations: 24 kB / 0.8004 GB, free: 380 kB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004359/0.5932, allocations: 234.2 kB / 0.8006 GB, free: 136 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.5934, allocations: 63.22 kB / 0.8007 GB, free: 72 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001614/0.595, allocations: 0.7702 MB / 0.8015 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.595, allocations: 7.938 kB / 0.8015 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.595, allocations: 4 kB / 0.8015 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.595, allocations: 0 / 0.8015 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002627/0.5977, allocations: 1.498 MB / 0.8029 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5977, allocations: 0 / 0.8029 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004004/0.5981, allocations: 75.88 kB / 0.803 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006946/0.5988, allocations: 202.4 kB / 0.8032 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.5988, allocations: 8 kB / 0.8032 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005377/0.6042, allocations: 5.277 MB / 0.8084 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6043, allocations: 0 / 0.8084 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.6062, allocations: 1.128 MB / 0.8095 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.6066, allocations: 172.5 kB / 0.8096 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.6067, allocations: 15.94 kB / 0.8096 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003801/0.6071, allocations: 23.97 kB / 0.8097 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.6072, allocations: 35.89 kB / 0.8097 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.898e-05/0.6072, allocations: 12.19 kB / 0.8097 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004243/0.6077, allocations: 310.9 kB / 0.81 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6077, allocations: 7.938 kB / 0.81 GB, free: 5.941 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008325/0.6085, allocations: 168 kB / 0.8102 GB, free: 5.777 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001986/0.6087, allocations: 115.3 kB / 0.8103 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001775/0.6105, allocations: 1.016 MB / 0.8113 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.6105, allocations: 0 / 0.8113 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.6116, allocations: 0.6799 MB / 0.8119 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.6128, allocations: 188.3 kB / 0.8121 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.6152, allocations: 1.307 MB / 0.8134 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006891/0.6159, allocations: 0.9416 MB / 0.8143 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.6161, allocations: 43.44 kB / 0.8144 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of SimCode: time 4.11e-07/0.6161, allocations: 0 / 0.8144 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of Templates: time 0.02083/0.637, allocations: 14.83 MB / 0.8288 GB, free: 2.555 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)