Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 110 kB / 16.37 MB, free: 6.469 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.001218/0.001218, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.263/1.263, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002076/0.002076, allocations: 298.6 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8986/0.8986, allocations: 169.2 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 95.77 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1542, allocations: 86.97 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.007681/0.1619, allocations: 6.729 MB / 0.6882 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.2669/0.4289, allocations: 3.018 MB / 0.6911 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00029/0.4292, allocations: 29.66 kB / 0.6912 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002059/0.4313, allocations: 0.9505 MB / 0.6921 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008828/0.4322, allocations: 0.4995 MB / 0.6926 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000873/0.4331, allocations: 431.3 kB / 0.693 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001154/0.4343, allocations: 1.223 MB / 0.6942 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008356/0.4351, allocations: 0.656 MB / 0.6948 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000494/0.4356, allocations: 473.1 kB / 0.6953 GB, free: 11.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006019/0.4362, allocations: 0.5239 MB / 0.6958 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.4364, allocations: 67.16 kB / 0.6959 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006393/0.437, allocations: 378.8 kB / 0.6962 GB, free: 11.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002941/0.4373, allocations: 303.4 kB / 0.6965 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003928/0.4377, allocations: 454.2 kB / 0.6969 GB, free: 11.3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.439, allocations: 1.211 MB / 0.6981 GB, free: 10.93 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.439, allocations: 0 / 0.6981 GB, free: 10.93 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.439, allocations: 0.7812 kB / 0.6981 GB, free: 10.93 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.439, allocations: 0.75 kB / 0.6981 GB, free: 10.93 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001637/0.4407, allocations: 1.157 MB / 0.6992 GB, free: 10.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.4407, allocations: 8.812 kB / 0.6993 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001432/0.4422, allocations: 249 kB / 0.6995 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000908/0.4431, allocations: 0.5889 MB / 0.7001 GB, free: 9.723 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.706e-05/0.4431, allocations: 51.83 kB / 0.7001 GB, free: 9.703 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.4433, allocations: 61.92 kB / 0.7002 GB, free: 9.688 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.4447, allocations: 1.08 MB / 0.7012 GB, free: 9.082 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.4447, allocations: 15.09 kB / 0.7012 GB, free: 9.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.119e-05/0.4448, allocations: 38.7 kB / 0.7013 GB, free: 9.047 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.4449, allocations: 84.08 kB / 0.7014 GB, free: 9.035 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.4461, allocations: 0.7492 MB / 0.7021 GB, free: 8.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004439/0.4506, allocations: 5.877 MB / 0.7078 GB, free: 3.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009439/0.4515, allocations: 0.5533 MB / 0.7084 GB, free: 3.578 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004831/0.452, allocations: 324.2 kB / 0.7087 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.196e-05/0.4521, allocations: 5.25 kB / 0.7087 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.4521, allocations: 46.91 kB / 0.7087 GB, free: 3.402 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 1.984e-06/0.4521, allocations: 0 / 0.7087 GB, free: 3.402 MB / 494.1 MB Notification: Performance of matching and sorting (n=48): time 0.003739/0.4559, allocations: 1.978 MB / 0.7107 GB, free: 2.367 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.4559, allocations: 64.22 kB / 0.7107 GB, free: 2.297 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006245/0.4565, allocations: 0.558 MB / 0.7113 GB, free: 2.031 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.4566, allocations: 32.36 kB / 0.7113 GB, free: 1.996 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/0.4568, allocations: 416.1 kB / 0.7117 GB, free: 1.668 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.4569, allocations: 169.7 kB / 0.7119 GB, free: 1.539 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.4571, allocations: 124.8 kB / 0.712 GB, free: 1.469 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.4572, allocations: 378.8 kB / 0.7123 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.4576, allocations: 278.2 kB / 0.7126 GB, free: 1.027 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004763/0.4581, allocations: 495.4 kB / 0.7131 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009395/0.459, allocations: 0.8091 MB / 0.7139 GB, free: 128 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.459, allocations: 1.375 kB / 0.7139 GB, free: 128 kB / 494.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001753/0.4608, allocations: 1.084 MB / 0.7149 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.4608, allocations: 9.031 kB / 0.7149 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.4608, allocations: 6.344 kB / 0.7149 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008189/0.4617, allocations: 287.9 kB / 0.7152 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/0.4621, allocations: 125 kB / 0.7153 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006238/0.4684, allocations: 7.136 MB / 0.7223 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/0.469, allocations: 43.12 kB / 0.7223 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/0.469, allocations: 29.33 kB / 0.7224 GB, free: 9.312 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (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.0003691/0.4694, allocations: 250.1 kB / 0.7226 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.4695, allocations: 71.75 kB / 0.7227 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/0.471, allocations: 0.8869 MB / 0.7236 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.4711, allocations: 13.62 kB / 0.7236 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4711, allocations: 3.281 kB / 0.7236 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.4711, allocations: 2.719 kB / 0.7236 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002586/0.4737, allocations: 1.724 MB / 0.7253 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.4737, allocations: 2.438 kB / 0.7253 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.4739, allocations: 60.03 kB / 0.7253 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006758/0.4746, allocations: 271.2 kB / 0.7256 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.4747, allocations: 7.25 kB / 0.7256 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006154/0.4808, allocations: 7.129 MB / 0.7325 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4808, allocations: 6.688 kB / 0.7325 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.4824, allocations: 0.9795 MB / 0.7335 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003615/0.4828, allocations: 193.2 kB / 0.7337 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.84e-05/0.4829, allocations: 7.281 kB / 0.7337 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.4832, allocations: 33.69 kB / 0.7337 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.4833, allocations: 43.16 kB / 0.7338 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.4834, allocations: 14.59 kB / 0.7338 GB, free: 492 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004378/0.4838, allocations: 385.3 kB / 0.7341 GB, free: 264 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4838, allocations: 4 kB / 0.7342 GB, free: 260 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008181/0.4846, allocations: 224.9 kB / 0.7344 GB, free: 236 kB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001434/0.4848, allocations: 109.7 kB / 0.7345 GB, free: 136 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001864/0.4867, allocations: 1.279 MB / 0.7357 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4867, allocations: 0 / 0.7357 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.4878, allocations: 0.8999 MB / 0.7366 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009156/0.4888, allocations: 214.4 kB / 0.7368 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.4908, allocations: 1.325 MB / 0.7381 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005695/0.4913, allocations: 1.011 MB / 0.7391 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003508/0.4917, allocations: 119.5 kB / 0.7392 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.4918, allocations: 48.98 kB / 0.7392 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of SimCode: time 3.61e-07/0.4918, allocations: 0 / 0.7392 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of Templates: time 0.01765/0.5095, allocations: 11.18 MB / 0.7502 GB, free: 6.016 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)