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.0018/0.0018, allocations: 110.5 kB / 16.41 MB, free: 6.508 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.001969/0.001969, allocations: 181.2 kB / 17.34 MB, free: 5.738 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.475/1.475, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002519/0.002519, allocations: 290 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 1.022/1.022, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004564/0.004564, allocations: 91.84 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.439/0.4435, allocations: 86.98 MB / 0.7671 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006526/0.4501, allocations: 4.855 MB / 0.7718 GB, free: 15.05 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004103/0.4542, allocations: 2.452 MB / 0.7742 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.4545, allocations: 23.81 kB / 0.7742 GB, free: 12.57 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.4556, allocations: 398 kB / 0.7746 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001006/0.4566, allocations: 469.6 kB / 0.775 GB, free: 11.71 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008205/0.4574, allocations: 378.6 kB / 0.7754 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0009896/0.4584, allocations: 0.9056 MB / 0.7763 GB, free: 10.44 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004596/0.4589, allocations: 295 kB / 0.7766 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004058/0.4593, allocations: 342.6 kB / 0.7769 GB, free: 9.812 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004279/0.4597, allocations: 354.4 kB / 0.7772 GB, free: 9.465 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.289e-05/0.4598, allocations: 40 kB / 0.7773 GB, free: 9.426 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006334/0.4604, allocations: 403.1 kB / 0.7777 GB, free: 9.031 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.4606, allocations: 187.4 kB / 0.7778 GB, free: 8.848 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003077/0.4609, allocations: 314.2 kB / 0.7781 GB, free: 8.539 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009905/0.4619, allocations: 0.8888 MB / 0.779 GB, free: 7.652 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4619, allocations: 0 / 0.779 GB, free: 7.652 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4619, allocations: 0 / 0.779 GB, free: 7.652 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.4619, allocations: 0 / 0.779 GB, free: 7.652 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001425/0.4633, allocations: 0.9649 MB / 0.7799 GB, free: 6.637 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.4634, allocations: 8.031 kB / 0.78 GB, free: 6.629 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001244/0.4646, allocations: 208.2 kB / 0.7801 GB, free: 6.426 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008104/0.4654, allocations: 0.5339 MB / 0.7807 GB, free: 5.855 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.4655, allocations: 33.38 kB / 0.7807 GB, free: 5.824 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.427e-05/0.4655, allocations: 56.28 kB / 0.7808 GB, free: 5.77 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.4667, allocations: 0.8485 MB / 0.7816 GB, free: 4.793 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.4667, allocations: 7.938 kB / 0.7816 GB, free: 4.785 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.197e-05/0.4667, allocations: 23.98 kB / 0.7816 GB, free: 4.762 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.379e-05/0.4668, allocations: 64.95 kB / 0.7817 GB, free: 4.695 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000849/0.4677, allocations: 0.5734 MB / 0.7822 GB, free: 4.121 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004722/0.4724, allocations: 5.647 MB / 0.7878 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006405/0.473, allocations: 430.9 kB / 0.7882 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.4733, allocations: 200.7 kB / 0.7884 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.4734, allocations: 4 kB / 0.7884 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.4734, allocations: 34.56 kB / 0.7884 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 2.014e-06/0.4734, allocations: 0 / 0.7884 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=33): time 0.002598/0.476, allocations: 1.511 MB / 0.7899 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.476, allocations: 55.69 kB / 0.7899 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000529/0.4766, allocations: 0.4951 MB / 0.7904 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.4766, allocations: 33.7 kB / 0.7904 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.4769, allocations: 359.8 kB / 0.7908 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.477, allocations: 123 kB / 0.7909 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.4771, allocations: 106.2 kB / 0.791 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4773, allocations: 366.8 kB / 0.7913 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002961/0.4776, allocations: 197.2 kB / 0.7915 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004917/0.4781, allocations: 447 kB / 0.792 GB, free: 9.469 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009178/0.479, allocations: 0.6915 MB / 0.7926 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.479, allocations: 4 kB / 0.7926 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00133/0.4803, allocations: 0.8056 MB / 0.7934 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.4804, allocations: 12 kB / 0.7934 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.4804, allocations: 11.98 kB / 0.7935 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004937/0.4809, allocations: 160.5 kB / 0.7936 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004478/0.4813, allocations: 123.8 kB / 0.7937 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003717/0.485, allocations: 4.352 MB / 0.798 GB, free: 2.738 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.4854, allocations: 31.97 kB / 0.798 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-05/0.4854, allocations: 28 kB / 0.798 GB, free: 2.68 MB / 0.5606 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.000277/0.4857, allocations: 222.3 kB / 0.7982 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.504e-05/0.4858, allocations: 63.56 kB / 0.7983 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.4869, allocations: 0.5891 MB / 0.7989 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.4869, allocations: 8 kB / 0.7989 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4869, allocations: 4 kB / 0.7989 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.4869, allocations: 3.984 kB / 0.7989 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001842/0.4888, allocations: 1.255 MB / 0.8001 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4888, allocations: 4 kB / 0.8001 GB, free: 420 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.489, allocations: 51.95 kB / 0.8002 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004038/0.4894, allocations: 148.3 kB / 0.8003 GB, free: 204 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.4894, allocations: 11.94 kB / 0.8003 GB, free: 192 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003521/0.493, allocations: 4.332 MB / 0.8046 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.493, allocations: 3.938 kB / 0.8046 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.494, allocations: 0.7085 MB / 0.8052 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.4942, allocations: 176.6 kB / 0.8054 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/0.4943, allocations: 15.98 kB / 0.8054 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.4946, allocations: 19.97 kB / 0.8055 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.504e-05/0.4946, allocations: 31.91 kB / 0.8055 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.4947, allocations: 12 kB / 0.8055 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003645/0.495, allocations: 330.8 kB / 0.8058 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.495, allocations: 0 / 0.8058 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006333/0.4956, allocations: 140 kB / 0.8059 GB, free: 9.941 MB / 0.5762 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.0001393/0.4958, allocations: 112.1 kB / 0.8061 GB, free: 9.82 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001425/0.4972, allocations: 1.013 MB / 0.807 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4972, allocations: 0 / 0.807 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008839/0.4981, allocations: 0.7263 MB / 0.8077 GB, free: 7.922 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009532/0.4991, allocations: 203.6 kB / 0.8079 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.5006, allocations: 1.054 MB / 0.809 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005272/0.5011, allocations: 0.9019 MB / 0.8099 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002909/0.5014, allocations: 117.3 kB / 0.81 GB, free: 5.586 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.822e-05/0.5015, allocations: 39.44 kB / 0.81 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of SimCode: time 5.82e-07/0.5015, allocations: 0 / 0.81 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of Templates: time 0.0152/0.5167, allocations: 7.732 MB / 0.8176 GB, free: 13.91 MB / 0.5919 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)