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.001153/0.001154, allocations: 101.9 kB / 16.35 MB, free: 5.879 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.00125/0.00125, allocations: 199.1 kB / 17.3 MB, free: 5.52 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.283/1.283, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002171/0.002171, allocations: 284.9 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9283/0.9283, allocations: 169.3 MB / 0.4989 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 99.19 kB / 0.5967 GB, free: 14.4 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1412, allocations: 86.97 MB / 0.6816 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005606/0.1469, allocations: 4.84 MB / 0.6863 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003334/0.1502, allocations: 2.451 MB / 0.6887 GB, free: 104 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.1504, allocations: 23.81 kB / 0.6887 GB, free: 80 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2374/0.3878, allocations: 406.5 kB / 0.6891 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001104/0.3889, allocations: 446.1 kB / 0.6896 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008237/0.3898, allocations: 374.5 kB / 0.6899 GB, free: 13 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008507/0.3906, allocations: 0.9155 MB / 0.6908 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005111/0.3912, allocations: 354.2 kB / 0.6911 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003693/0.3915, allocations: 337.3 kB / 0.6915 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004075/0.392, allocations: 349.7 kB / 0.6918 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.325e-05/0.392, allocations: 38.44 kB / 0.6918 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006305/0.3927, allocations: 402.2 kB / 0.6922 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.3929, allocations: 180 kB / 0.6924 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002643/0.3931, allocations: 322.7 kB / 0.6927 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009756/0.3941, allocations: 0.8772 MB / 0.6936 GB, free: 12.48 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3941, allocations: 0.6094 kB / 0.6936 GB, free: 12.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3941, allocations: 0.5 kB / 0.6936 GB, free: 12.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.3941, allocations: 1.031 kB / 0.6936 GB, free: 12.48 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.001219/0.3954, allocations: 0.9337 MB / 0.6945 GB, free: 11.89 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3954, allocations: 10.45 kB / 0.6945 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00125/0.3967, allocations: 209.2 kB / 0.6947 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007814/0.3975, allocations: 0.5369 MB / 0.6952 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.3975, allocations: 35.83 kB / 0.6952 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.579e-05/0.3976, allocations: 42.31 kB / 0.6953 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009658/0.3986, allocations: 0.8434 MB / 0.6961 GB, free: 11.15 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.3986, allocations: 11.69 kB / 0.6961 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.913e-05/0.3986, allocations: 28.5 kB / 0.6961 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.794e-05/0.3988, allocations: 64.73 kB / 0.6962 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008341/0.3996, allocations: 0.5643 MB / 0.6968 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.4028, allocations: 5.639 MB / 0.7023 GB, free: 5.848 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006101/0.4035, allocations: 458 kB / 0.7027 GB, free: 5.684 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/0.4037, allocations: 225.4 kB / 0.7029 GB, free: 5.602 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.4038, allocations: 2.125 kB / 0.7029 GB, free: 5.602 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.4038, allocations: 40.48 kB / 0.703 GB, free: 5.559 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.623e-06/0.4038, allocations: 0 / 0.703 GB, free: 5.559 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002254/0.4061, allocations: 1.502 MB / 0.7044 GB, free: 4.629 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.072e-05/0.4061, allocations: 54.97 kB / 0.7045 GB, free: 4.566 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004717/0.4066, allocations: 0.4962 MB / 0.705 GB, free: 4.328 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.4066, allocations: 35.02 kB / 0.705 GB, free: 4.289 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.4068, allocations: 353.1 kB / 0.7053 GB, free: 4.004 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.627e-05/0.4069, allocations: 119.9 kB / 0.7054 GB, free: 3.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.407, allocations: 110.7 kB / 0.7055 GB, free: 3.855 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.935e-05/0.4071, allocations: 370.4 kB / 0.7059 GB, free: 3.516 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.4074, allocations: 196.1 kB / 0.7061 GB, free: 3.449 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.4078, allocations: 442.7 kB / 0.7065 GB, free: 3.062 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006789/0.4084, allocations: 0.6973 MB / 0.7072 GB, free: 2.531 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.4084, allocations: 2.344 kB / 0.7072 GB, free: 2.531 MB / 494.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001199/0.4097, allocations: 0.8072 MB / 0.708 GB, free: 2.176 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4097, allocations: 9.312 kB / 0.708 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.4097, allocations: 9.531 kB / 0.708 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004859/0.4102, allocations: 150.9 kB / 0.7081 GB, free: 2.109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004522/0.4107, allocations: 130 kB / 0.7083 GB, free: 2.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002916/0.4136, allocations: 4.34 MB / 0.7125 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.414, allocations: 38.28 kB / 0.7125 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-05/0.414, allocations: 26.53 kB / 0.7126 GB, free: 13.81 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.0002653/0.4143, allocations: 217.3 kB / 0.7128 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.461e-05/0.4144, allocations: 60.66 kB / 0.7128 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.4155, allocations: 0.5992 MB / 0.7134 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.4155, allocations: 3.344 kB / 0.7134 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4155, allocations: 2 kB / 0.7134 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.4155, allocations: 2.062 kB / 0.7134 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.4175, allocations: 1.256 MB / 0.7146 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.4175, allocations: 2.984 kB / 0.7147 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.4178, allocations: 58.23 kB / 0.7147 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004314/0.4182, allocations: 142.8 kB / 0.7148 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.4183, allocations: 7.688 kB / 0.7149 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003197/0.4215, allocations: 4.34 MB / 0.7191 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4215, allocations: 2.75 kB / 0.7191 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.4227, allocations: 0.7144 MB / 0.7198 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.423, allocations: 162 kB / 0.7199 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.909e-05/0.4231, allocations: 21.42 kB / 0.72 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.4233, allocations: 22.67 kB / 0.72 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.4234, allocations: 35.91 kB / 0.72 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.4235, allocations: 8.188 kB / 0.72 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004446/0.4239, allocations: 341 kB / 0.7204 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4239, allocations: 0 / 0.7204 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006904/0.4246, allocations: 138.3 kB / 0.7205 GB, free: 7.52 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.0001634/0.4248, allocations: 111.9 kB / 0.7206 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00158/0.4264, allocations: 1.038 MB / 0.7216 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4264, allocations: 0 / 0.7216 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008963/0.4273, allocations: 0.7277 MB / 0.7223 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.4284, allocations: 209.8 kB / 0.7225 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.4301, allocations: 1.035 MB / 0.7235 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000565/0.4307, allocations: 0.9063 MB / 0.7244 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004015/0.4311, allocations: 121.3 kB / 0.7245 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.4312, allocations: 38.83 kB / 0.7246 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of SimCode: time 4.2e-07/0.4312, allocations: 3.938 kB / 0.7246 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of Templates: time 0.01588/0.4471, allocations: 7.604 MB / 0.732 GB, free: 2.273 MB / 0.4981 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)