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.0011/0.0011, allocations: 108 kB / 16.41 MB, free: 6.027 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.001065/0.001065, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.394/1.394, 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.002279/0.002279, allocations: 297.5 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.9713/0.9713, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 107.8 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5094/0.5112, allocations: 86.97 MB / 0.767 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006727/0.5179, allocations: 4.847 MB / 0.7718 GB, free: 15.06 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004372/0.5223, allocations: 2.444 MB / 0.7742 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005854/0.523, allocations: 23.81 kB / 0.7742 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.5244, allocations: 413.8 kB / 0.7746 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001443/0.5258, allocations: 465.7 kB / 0.775 GB, free: 11.72 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000967/0.5268, allocations: 374.1 kB / 0.7754 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00116/0.528, allocations: 0.9173 MB / 0.7763 GB, free: 10.44 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006372/0.5286, allocations: 358.8 kB / 0.7766 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005768/0.5292, allocations: 342.7 kB / 0.777 GB, free: 9.75 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005803/0.5298, allocations: 346.5 kB / 0.7773 GB, free: 9.41 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.753e-05/0.5299, allocations: 36 kB / 0.7773 GB, free: 9.375 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007307/0.5306, allocations: 403.1 kB / 0.7777 GB, free: 8.98 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002183/0.5309, allocations: 187.4 kB / 0.7779 GB, free: 8.797 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003865/0.5313, allocations: 318.3 kB / 0.7782 GB, free: 8.484 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.5324, allocations: 0.8823 MB / 0.779 GB, free: 7.602 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.5325, allocations: 4 kB / 0.779 GB, free: 7.598 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.893e-06/0.5325, allocations: 0 / 0.779 GB, free: 7.598 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.997e-05/0.5325, allocations: 0 / 0.779 GB, free: 7.598 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.001599/0.5341, allocations: 0.9308 MB / 0.78 GB, free: 6.617 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.5342, allocations: 12.03 kB / 0.78 GB, free: 6.605 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/0.5355, allocations: 203.8 kB / 0.7802 GB, free: 6.406 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008075/0.5363, allocations: 0.5334 MB / 0.7807 GB, free: 5.836 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.5364, allocations: 29.38 kB / 0.7807 GB, free: 5.809 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.784e-05/0.5365, allocations: 52.36 kB / 0.7808 GB, free: 5.758 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.5375, allocations: 0.8446 MB / 0.7816 GB, free: 4.785 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/0.5376, allocations: 7.938 kB / 0.7816 GB, free: 4.777 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-05/0.5377, allocations: 27.98 kB / 0.7816 GB, free: 4.75 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.784e-05/0.5378, allocations: 64.95 kB / 0.7817 GB, free: 4.684 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008459/0.5386, allocations: 0.5656 MB / 0.7822 GB, free: 4.117 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.543, allocations: 5.65 MB / 0.7878 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006244/0.5436, allocations: 458.2 kB / 0.7882 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002933/0.5439, allocations: 228.7 kB / 0.7884 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.544, allocations: 7.984 kB / 0.7884 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.544, allocations: 38.56 kB / 0.7885 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 1.924e-06/0.544, allocations: 0 / 0.7885 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of matching and sorting (n=33): time 0.002612/0.5466, allocations: 1.502 MB / 0.7899 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.5467, allocations: 63.67 kB / 0.79 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005382/0.5472, allocations: 491 kB / 0.7904 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.5473, allocations: 29.7 kB / 0.7905 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/0.5475, allocations: 354.8 kB / 0.7908 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.402e-05/0.5476, allocations: 126.2 kB / 0.7909 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.5478, allocations: 114.2 kB / 0.791 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.5479, allocations: 362.8 kB / 0.7914 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.5482, allocations: 197.2 kB / 0.7916 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004265/0.5487, allocations: 451 kB / 0.792 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007861/0.5495, allocations: 0.6882 MB / 0.7927 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.5495, allocations: 0 / 0.7927 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00129/0.5508, allocations: 0.8127 MB / 0.7935 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.5508, allocations: 8 kB / 0.7935 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.5508, allocations: 12.88 kB / 0.7935 GB, free: 7.746 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005099/0.5513, allocations: 160.1 kB / 0.7936 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.5518, allocations: 119.8 kB / 0.7938 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003331/0.5551, allocations: 4.336 MB / 0.798 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004025/0.5556, allocations: 44.12 kB / 0.798 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/0.5556, allocations: 27.94 kB / 0.7981 GB, free: 2.629 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.0002657/0.5559, allocations: 212.7 kB / 0.7983 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-05/0.556, allocations: 63.25 kB / 0.7983 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.557, allocations: 0.6046 MB / 0.7989 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.557, allocations: 4 kB / 0.7989 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.557, allocations: 8 kB / 0.7989 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.557, allocations: 0 / 0.7989 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.5588, allocations: 1.253 MB / 0.8002 GB, free: 372 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5588, allocations: 0 / 0.8002 GB, free: 372 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.5591, allocations: 55.89 kB / 0.8002 GB, free: 316 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000387/0.5595, allocations: 144.4 kB / 0.8003 GB, free: 156 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.5595, allocations: 11.94 kB / 0.8004 GB, free: 144 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003101/0.5626, allocations: 4.332 MB / 0.8046 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.5627, allocations: 4 kB / 0.8046 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009894/0.5637, allocations: 0.7199 MB / 0.8053 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.5639, allocations: 164.4 kB / 0.8054 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.338e-05/0.564, allocations: 8 kB / 0.8055 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.5642, allocations: 23.97 kB / 0.8055 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.663e-05/0.5643, allocations: 27.91 kB / 0.8055 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.5643, allocations: 12 kB / 0.8055 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003371/0.5647, allocations: 334.8 kB / 0.8058 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5647, allocations: 0 / 0.8058 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006403/0.5653, allocations: 144 kB / 0.806 GB, free: 9.895 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.0001479/0.5655, allocations: 108.2 kB / 0.8061 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00143/0.5669, allocations: 1.044 MB / 0.8071 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.5669, allocations: 0 / 0.8071 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008116/0.5678, allocations: 0.7302 MB / 0.8078 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009718/0.5687, allocations: 204.8 kB / 0.808 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.5704, allocations: 1.086 MB / 0.8091 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.5709, allocations: 0.9019 MB / 0.8099 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.571, allocations: 43.44 kB / 0.81 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of SimCode: time 1.813e-06/0.571, allocations: 4 kB / 0.81 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of Templates: time 0.02213/0.5932, allocations: 18.04 MB / 0.8276 GB, free: 3.523 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)