Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001177/0.001177, allocations: 183.9 kB / 17.19 MB, free: 5.688 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.32/1.32, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002492/0.002491, allocations: 289.7 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9649/0.9649, allocations: 169.3 MB / 0.4988 GB, free: 4.508 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001907, allocations: 112.6 kB / 0.5959 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1583, allocations: 86.96 MB / 0.6808 GB, free: 8.199 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.007397/0.1658, allocations: 4.833 MB / 0.6856 GB, free: 3.34 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004213/0.17, allocations: 2.459 MB / 0.688 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004718/0.1705, allocations: 23.81 kB / 0.688 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.1718, allocations: 405.9 kB / 0.6884 GB, free: 460 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001165/0.1729, allocations: 441.6 kB / 0.6888 GB, free: 16 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2847/0.4577, allocations: 369 kB / 0.6892 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.4589, allocations: 0.9162 MB / 0.69 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005778/0.4595, allocations: 357.7 kB / 0.6904 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000424/0.4599, allocations: 336 kB / 0.6907 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.4604, allocations: 344.4 kB / 0.691 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.395e-05/0.4604, allocations: 36.78 kB / 0.6911 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007443/0.4612, allocations: 404.3 kB / 0.6915 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.4614, allocations: 180.5 kB / 0.6916 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002823/0.4617, allocations: 318.2 kB / 0.6919 GB, free: 12.24 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.4627, allocations: 0.8635 MB / 0.6928 GB, free: 12.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4628, allocations: 2.875 kB / 0.6928 GB, free: 12.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4628, allocations: 4 kB / 0.6928 GB, free: 12.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.4628, allocations: 1.094 kB / 0.6928 GB, free: 12.11 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001262/0.464, allocations: 0.9289 MB / 0.6937 GB, free: 11.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4641, allocations: 14.09 kB / 0.6937 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001287/0.4654, allocations: 213.3 kB / 0.6939 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.466, allocations: 484.9 kB / 0.6944 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.4661, allocations: 36.38 kB / 0.6944 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.957e-05/0.4661, allocations: 49.16 kB / 0.6945 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009821/0.4671, allocations: 0.8403 MB / 0.6953 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.4672, allocations: 11.09 kB / 0.6953 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.042e-05/0.4672, allocations: 23.23 kB / 0.6953 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.4673, allocations: 64.89 kB / 0.6954 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008279/0.4682, allocations: 0.5716 MB / 0.6959 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003309/0.4715, allocations: 5.65 MB / 0.7014 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006681/0.4722, allocations: 455 kB / 0.7019 GB, free: 5.676 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003367/0.4725, allocations: 232.2 kB / 0.7021 GB, free: 5.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.4725, allocations: 3.844 kB / 0.7021 GB, free: 5.59 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.4726, allocations: 32.84 kB / 0.7021 GB, free: 5.551 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 2.514e-06/0.4726, allocations: 0 / 0.7021 GB, free: 5.551 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002462/0.475, allocations: 1.501 MB / 0.7036 GB, free: 4.629 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.4751, allocations: 59 kB / 0.7037 GB, free: 4.566 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004799/0.4756, allocations: 0.4941 MB / 0.7041 GB, free: 4.324 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.4756, allocations: 31.14 kB / 0.7042 GB, free: 4.289 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.4758, allocations: 356.4 kB / 0.7045 GB, free: 4.004 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.643e-05/0.4759, allocations: 117.3 kB / 0.7046 GB, free: 3.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.476, allocations: 107.8 kB / 0.7047 GB, free: 3.859 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.333e-05/0.4761, allocations: 368.9 kB / 0.7051 GB, free: 3.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/0.4764, allocations: 196.7 kB / 0.7053 GB, free: 3.453 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000388/0.4768, allocations: 453 kB / 0.7057 GB, free: 3.066 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.4775, allocations: 0.6898 MB / 0.7064 GB, free: 2.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4775, allocations: 2 kB / 0.7064 GB, free: 2.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001248/0.4788, allocations: 0.8078 MB / 0.7072 GB, free: 2.215 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.4788, allocations: 9.281 kB / 0.7072 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.4788, allocations: 9.062 kB / 0.7072 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000474/0.4793, allocations: 155.8 kB / 0.7073 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004531/0.4798, allocations: 125.2 kB / 0.7074 GB, free: 2.133 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002896/0.4827, allocations: 4.346 MB / 0.7117 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/0.4831, allocations: 32.53 kB / 0.7117 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.777e-05/0.4831, allocations: 32.77 kB / 0.7117 GB, free: 13.84 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002754/0.4834, allocations: 213.2 kB / 0.712 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.535e-05/0.4835, allocations: 65.69 kB / 0.712 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.4846, allocations: 0.5944 MB / 0.7126 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.4847, allocations: 3.938 kB / 0.7126 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4847, allocations: 1.719 kB / 0.7126 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.4847, allocations: 2.234 kB / 0.7126 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.4867, allocations: 1.265 MB / 0.7138 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4867, allocations: 1.984 kB / 0.7138 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.487, allocations: 54.83 kB / 0.7139 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003924/0.4874, allocations: 144.3 kB / 0.714 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.4874, allocations: 7.75 kB / 0.714 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003132/0.4905, allocations: 4.34 MB / 0.7183 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.4906, allocations: 3.625 kB / 0.7183 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.4916, allocations: 0.7128 MB / 0.719 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.4918, allocations: 169.9 kB / 0.7191 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.538e-05/0.4919, allocations: 12.52 kB / 0.7191 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.4922, allocations: 22.77 kB / 0.7192 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.975e-05/0.4922, allocations: 35.5 kB / 0.7192 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.4923, allocations: 12.19 kB / 0.7192 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004161/0.4927, allocations: 334 kB / 0.7195 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4927, allocations: 0 / 0.7195 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006887/0.4934, allocations: 145.9 kB / 0.7197 GB, free: 7.543 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001363/0.4936, allocations: 109.4 kB / 0.7198 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001454/0.495, allocations: 1.075 MB / 0.7208 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.495, allocations: 0 / 0.7208 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008065/0.4958, allocations: 0.7305 MB / 0.7215 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.4969, allocations: 207.5 kB / 0.7217 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.4986, allocations: 1.1 MB / 0.7228 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.4991, allocations: 0.9088 MB / 0.7237 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.4992, allocations: 43.28 kB / 0.7237 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of SimCode: time 4.7e-07/0.4992, allocations: 1.156 kB / 0.7237 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of Templates: time 0.02331/0.5226, allocations: 17.99 MB / 0.7413 GB, free: 12.72 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)